From bb7fc743307e989e9479a0cdc2edc4d674e07e57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 5 Jan 2018 13:13:20 +0200 Subject: [PATCH] tests: rename dataproviders not to be picked up as tests --- tests/HTTPEncoderTest.php | 8 ++++---- tests/JSMinTest.php | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/HTTPEncoderTest.php b/tests/HTTPEncoderTest.php index ea150fc..a3b3359 100644 --- a/tests/HTTPEncoderTest.php +++ b/tests/HTTPEncoderTest.php @@ -7,7 +7,7 @@ use HTTP_Encoder; class HTTPEncoderTest extends TestCase { /** - * @dataProvider testToIe6Data + * @dataProvider ToIe6DataProvider * @preserveGlobals */ public function testToIe6($ua, $ae, $exp, $desc) @@ -20,7 +20,7 @@ class HTTPEncoderTest extends TestCase $this->assertSame($exp, $ret, $desc); } - public function testToIe6Data() + public function ToIe6DataProvider() { return array( array( @@ -69,7 +69,7 @@ class HTTPEncoderTest extends TestCase } /** - * @dataProvider testEncodeNonIeData + * @dataProvider EncodeNonIeDataProvider */ public function testEncodeNonIe($ua, $ae, $exp, $desc) { @@ -81,7 +81,7 @@ class HTTPEncoderTest extends TestCase $this->assertSame($exp, $ret, $desc); } - public function testEncodeNonIeData() + public function EncodeNonIeDataProvider() { return array( array( diff --git a/tests/JSMinTest.php b/tests/JSMinTest.php index 271a483..66c19c0 100644 --- a/tests/JSMinTest.php +++ b/tests/JSMinTest.php @@ -57,7 +57,8 @@ class JSMinTest extends TestCase * @param string $label * @param string $expClass * @param string $expMessage - * @dataProvider testJSMinExceptionData + * + * @dataProvider JSMinExceptionDataProvider */ public function testJSMinException($js, $label, $expClass, $expMessage) { @@ -71,7 +72,7 @@ class JSMinTest extends TestCase $this->assertTrue($eClass === $expClass && $eMsg === $expMessage, 'Throw on ' . $label); } - public function testJSMinExceptionData() + public function JSMinExceptionDataProvider() { // $js, $label, $expClass, $expMessage return array(