- public function run( array $argv, $exit = true ) {
- wfProfileIn( __METHOD__ );
-
- $ret = parent::run( $argv, false );
-
- wfProfileOut( __METHOD__ );
-
- // Return to real wiki db, so profiling data is preserved
- MediaWikiTestCase::teardownTestDB();
-
- // Log profiling data, e.g. in the database or UDP
- wfLogProfilingData();
-
- if ( $exit ) {
- exit( $ret );
- } else {
- return $ret;
- }
- }
-
- public function showHelp() {
- parent::showHelp();
-
- print <<<EOT
-
-ParserTest-specific options:
- --regex="<regex>" Only run parser tests that match the given regex
- --file="<filename>" File describing parser tests
- --keep-uploads Re-use the same upload directory for each test, don't delete it
-
-Database options:
- --use-normal-tables Use normal DB tables.
- --reuse-db Init DB only if tables are missing and keep after finish.
-
-Debugging options:
- --debug-tests Log testing activity to the PHPUnitCommand log channel.
-
-EOT;
+ protected function createRunner() {
+ $runner = new MediaWikiTestRunner;
+ $runner->setMwCliArgs( $this->cliArgs );
+ return $runner;