summaryrefslogtreecommitdiff
path: root/tests/phpunit/StructureTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/StructureTest.php')
-rw-r--r--tests/phpunit/StructureTest.php8
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."
);
}