Replace the global $additionalMWCLIArgs with a class variable.
[lhc/web/wiklou.git] / tests / phpunit / MediaWikiPHPUnitCommand.php
1 <?php
2
3 class MediaWikiPHPUnitCommand extends PHPUnit_TextUI_Command {
4 static $additionalArgs = array( 'verbose' => false );
5
6 public function __construct() {
7 $this->longOptions['verbose'] = 'verboseHandler';
8 }
9
10 public static function main( $exit = true ) {
11 $command = new self;
12 $command->run($_SERVER['argv'], $exit);
13 }
14
15 protected function verboseHandler($value) {
16 self::$additionalArgs['verbose'] = true;
17 }
18
19 }