wiki.techinc.nl/tests/phpunit/MediaWikiPHPUnitCommand.php
X! edbf743aeb Make MediaWikiParserTest work now in PHPUnit. There are still a few bugs, such as stopping tests if one fails,
lack of fuzz testing and other parser test options, and the DB creation is still a little flaky.
A MediaWikiPHPUnitCommand class had to be created to allow for custom CLI parameters.
2010-12-29 02:23:51 +00:00

19 lines
416 B
PHP

<?php
class MediaWikiPHPUnitCommand extends PHPUnit_TextUI_Command {
public function __construct() {
$this->longOptions['verbose'] = 'verboseHandler';
}
public static function main( $exit = true ) {
$command = new self;
$command->run($_SERVER['argv'], $exit);
}
protected function verboseHandler($value) {
global $additionalMWCLIArgs;
$additionalMWCLIArgs['verbose'] = true;
}
}