Move debug-tests out of MediaWikiPHPUnitCommand
[lhc/web/wiklou.git] / tests / phpunit / MediaWikiPHPUnitCommand.php
index fa863fc..62b9cfd 100644 (file)
@@ -12,7 +12,6 @@ class MediaWikiPHPUnitCommand extends PHPUnit_TextUI_Command {
                'use-normal-tables' => false,
                'reuse-db' => false,
                'wiki=' => false,
-               'debug-tests' => false,
        );
 
        public function __construct() {
@@ -21,22 +20,6 @@ class MediaWikiPHPUnitCommand extends PHPUnit_TextUI_Command {
                }
        }
 
-       protected function handleArguments( array $argv ) {
-               parent::handleArguments( $argv );
-
-               if ( !isset( $this->arguments['listeners'] ) ) {
-                       $this->arguments['listeners'] = array();
-               }
-
-               foreach ( $this->options[0] as $option ) {
-                       switch ( $option[0] ) {
-                               case '--debug-tests':
-                                       $this->arguments['listeners'][] = new MediaWikiPHPUnitTestListener( 'PHPUnitCommand' );
-                                       break;
-                       }
-               }
-       }
-
        public static function main( $exit = true ) {
                $command = new self;
                $command->run( $_SERVER['argv'], $exit );
@@ -66,9 +49,6 @@ Database options:
   --use-normal-tables      Use normal DB tables.
   --reuse-db               Init DB only if tables are missing and keep after finish.
 
-Debugging options:
-  --debug-tests            Log testing activity to the PHPUnitCommand log channel.
-
 EOT;
        }
 }