3 class MediaWikiPHPUnitCommand
extends PHPUnit_TextUI_Command
{
5 static $additionalOptions = array(
9 'keep-uploads' => false,
12 //Fixme: These aren't shown on the --help menu
14 public function __construct() {
15 foreach( self
::$additionalOptions as $option => $default ) {
16 $this->longOptions
[$option] = $option . 'Handler';
21 public static function main( $exit = true ) {
23 $command->run($_SERVER['argv'], $exit);
26 public function __call( $func, $args ) {
28 if( substr( $func, -7 ) == 'Handler' ) {
29 if( is_null( $args[0] ) ) $args[0] = true; //Booleans
30 self
::$additionalOptions[substr( $func, 0, -7 ) ] = $args[0];