Added a new hook that allows extensions to add their own tests to the core test suite
[lhc/web/wiklou.git] / maintenance / tests / phpunit
index b893847..bab4439 100755 (executable)
@@ -32,6 +32,7 @@ class MWPHPUnitCommand extends PHPUnit_TextUI_Command {
                } else {
                        require( dirname( __FILE__ ) . '/TestFileList.php' );
                        $files = $testFiles;
+                       wfRunHooks( 'UnitTestsList', array( &$files ) );
                }
                foreach ( $files as $file ) {
                        $suite->addTestFile( $file );