From 332e01addfd6738b0ffbd3b44699ce03cf213d81 Mon Sep 17 00:00:00 2001 From: X! Date: Sat, 1 Jan 2011 06:49:00 +0000 Subject: [PATCH] Add parsertest specific help to PHPUnit.php --- tests/phpunit/MediaWikiPHPUnitCommand.php | 18 +++++++++++++++--- .../phpunit/includes/parser/NewParserTest.php | 4 ---- 2 files changed, 15 insertions(+), 7 deletions(-) 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 -- 2.20.1