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.
19 lines
416 B
PHP
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;
|
|
}
|
|
|
|
}
|