From: gicode Date: Thu, 10 Nov 2011 23:52:56 +0000 (+0000) Subject: Fix file name and class case. X-Git-Tag: 1.31.0-rc.0~26576 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=4db7a07b4928accb606f4bd2377f330b49e24517;p=lhc%2Fweb%2Fwiklou.git Fix file name and class case. Follow-up r102719 --- diff --git a/tests/phpunit/StructureTest.php b/tests/phpunit/StructureTest.php new file mode 100644 index 0000000000..eb16360fbe --- /dev/null +++ b/tests/phpunit/StructureTest.php @@ -0,0 +1,53 @@ +assertEquals( + 0, + $exitCode, + 'Verify find/grep command succeeds.' + ); + + $results = array_filter( + $results, + array( $this, 'filterSuites' ) + ); + + $this->assertEquals( + array(), + $results, + 'Unit test file names must end with Test.' + ); + } + + /** + * Filter to remove testUnitTestFileNamesEndWithTest false positives. + */ + public function filterSuites( $filename ) { + return strpos( $filename, __DIR__ . '/suites/' ) !== 0; + } +} diff --git a/tests/phpunit/structureTest.php b/tests/phpunit/structureTest.php deleted file mode 100644 index 27eb5e6198..0000000000 --- a/tests/phpunit/structureTest.php +++ /dev/null @@ -1,53 +0,0 @@ -assertEquals( - 0, - $exitCode, - 'Verify find/grep command succeeds.' - ); - - $results = array_filter( - $results, - array( $this, 'filterSuites' ) - ); - - $this->assertEquals( - array(), - $results, - 'Unit test file names must end with Test.' - ); - } - - /** - * Filter to remove testUnitTestFileNamesEndWithTest false positives. - */ - public function filterSuites( $filename ) { - return strpos( $filename, __DIR__ . '/suites/' ) !== 0; - } -} diff --git a/tests/phpunit/suite.xml b/tests/phpunit/suite.xml index 784b6d38a5..5c07cd444d 100644 --- a/tests/phpunit/suite.xml +++ b/tests/phpunit/suite.xml @@ -21,7 +21,7 @@ skins - structureTest.php + StructureTest.php suites/UploadFromUrlTestSuite.php