From: X! Date: Sat, 1 Jan 2011 06:49:00 +0000 (+0000) Subject: Add parsertest specific help to PHPUnit.php X-Git-Tag: 1.31.0-rc.0~32934 X-Git-Url: http://git.cyclocoop.org/clavettes/images/siteon3.jpg?a=commitdiff_plain;h=332e01addfd6738b0ffbd3b44699ce03cf213d81;p=lhc%2Fweb%2Fwiklou.git Add parsertest specific help to PHPUnit.php --- diff --git a/tests/phpunit/MediaWikiPHPUnitCommand.php b/tests/phpunit/MediaWikiPHPUnitCommand.php index 8a6665c603..6ca9976be5 100644 --- a/tests/phpunit/MediaWikiPHPUnitCommand.php +++ b/tests/phpunit/MediaWikiPHPUnitCommand.php @@ -4,13 +4,10 @@ class MediaWikiPHPUnitCommand extends PHPUnit_TextUI_Command { static $additionalOptions = array( 'regex=' => false, - 'record' => false, 'file=' => false, 'keep-uploads' => false, ); - //Fixme: These aren't shown on the --help menu - public function __construct() { foreach( self::$additionalOptions as $option => $default ) { $this->longOptions[$option] = $option . 'Handler'; @@ -31,4 +28,19 @@ class MediaWikiPHPUnitCommand extends PHPUnit_TextUI_Command { } } + public function showHelp() { + parent::showHelp(); + + print <<getCliArg( 'regex=' ) ) { - if ( $this->getCliArg( 'record' ) ) { - echo "Warning: --record cannot be used with --regex, disabling --record\n"; - $this->setCliArg( 'record', false ); - } $this->regex = $this->getCliArg( 'regex=' ); } else { # Matches anything