Index: trunk/phase3/maintenance/tests/phpunit |
— | — | @@ -26,9 +26,14 @@ |
27 | 27 | |
28 | 28 | class MWPHPUnitCommand extends PHPUnit_TextUI_Command { |
29 | 29 | protected function handleCustomTestSuite() { |
30 | | - require( dirname( __FILE__ ) . '/TestFileList.php' ); |
31 | 30 | $suite = new PHPUnit_Framework_TestSuite; |
32 | | - foreach ( $testFiles as $file ) { |
| 31 | + if ( !empty( $this->options[1] ) ) { |
| 32 | + $files = $this->options[1]; |
| 33 | + } else { |
| 34 | + require( dirname( __FILE__ ) . '/TestFileList.php' ); |
| 35 | + $files = $testFiles; |
| 36 | + } |
| 37 | + foreach ( $files as $file ) { |
33 | 38 | $suite->addTestFile( $file ); |
34 | 39 | } |
35 | 40 | $suite->setName( 'MediaWiki test suite' ); |
Index: trunk/phase3/maintenance/tests/phpunit.bat |
— | — | @@ -1 +1 @@ |
2 | | -@php phpunit |
\ No newline at end of file |
| 2 | +@php phpunit %1 %2 %3 %4 %5 %6 %7 %8 %9 |
\ No newline at end of file |