15 $this->markTestSkipped(
'This test does not work on Windows' );
17 $rootPath = escapeshellarg( __DIR__ .
'/..' );
18 $testClassRegex = implode(
'|', [
22 'ApiQueryContinueTestBase',
23 'MediaWikiLangTestCase',
24 'MediaWikiMediaTestCase',
26 'ResourceLoaderTestCase',
27 'PHPUnit_Framework_TestCase',
28 '\\?PHPUnit\\Framework\\TestCase',
32 $testClassRegex =
"^class .* extends ($testClassRegex)";
33 $finder =
"find $rootPath -name '*.php' '!' -name '*Test.php'" .
34 " | xargs grep -El '$testClassRegex|function suite\('";
38 exec( $finder, $results, $exitCode );
43 'Verify find/grep command succeeds.'
46 $results = array_filter(
48 [ $this,
'filterSuites' ]
50 $strip = strlen( $rootPath ) - 1;
51 foreach ( $results as $k => $v ) {
52 $results[$k] = substr( $v, $strip );
57 "Unit test file in $rootPath must end with Test."