diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2013-01-18 16:46:04 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-01-18 16:46:04 +0100 |
commit | 63601400e476c6cf43d985f3e7b9864681695ed4 (patch) | |
tree | f7846203a952e38aaf66989d0a4702779f549962 /tests/phpunit/StructureTest.php | |
parent | 8ff01378c9e0207f9169b81966a51def645b6a51 (diff) |
Update to MediaWiki 1.20.2
this update includes:
* adjusted Arch Linux skin
* updated FluxBBAuthPlugin
* patch for https://bugzilla.wikimedia.org/show_bug.cgi?id=44024
Diffstat (limited to 'tests/phpunit/StructureTest.php')
-rw-r--r-- | tests/phpunit/StructureTest.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/phpunit/StructureTest.php b/tests/phpunit/StructureTest.php index f967c18d..17ea06c4 100644 --- a/tests/phpunit/StructureTest.php +++ b/tests/phpunit/StructureTest.php @@ -20,6 +20,7 @@ class StructureTest extends MediaWikiTestCase { 'MediaWikiLangTestCase', 'MediaWikiTestCase', 'PHPUnit_Framework_TestCase', + 'DumpTestCase', ) ); $testClassRegex = "^class .* extends ($testClassRegex)"; $finder = "find $rootPath -name '*.php' '!' -name '*Test.php'" . @@ -39,11 +40,14 @@ class StructureTest extends MediaWikiTestCase { $results, array( $this, 'filterSuites' ) ); - + $strip = strlen( $rootPath ) - 1; + foreach( $results as $k => $v) { + $results[$k] = substr( $v, $strip ); + } $this->assertEquals( array(), $results, - 'Unit test file names must end with Test.' + "Unit test file in $rootPath must end with Test." ); } |