undo misguided changes to phpunit
authordaniel <daniel.kinzler@wikimedia.de>
Tue, 19 Jun 2012 12:29:25 +0000 (14:29 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Tue, 19 Jun 2012 12:29:25 +0000 (14:29 +0200)
Change-Id: I14f72e3ea6885cd5e0fbdfe6aca42d39076274ec

tests/phpunit/MediaWikiPHPUnitCommand.php
tests/phpunit/phpunit.php [changed mode: 0644->0755]

index 18475ca..ea385ad 100644 (file)
@@ -53,19 +53,6 @@ class MediaWikiPHPUnitCommand extends PHPUnit_TextUI_Command {
                }
        }
 
-       protected function handleCustomTestSuite() {
-               if ( empty( $this->arguments['printer'] ) ) {
-                       $this->arguments['printer'] = new PHPUnit_TextUI_ResultPrinter(
-                               null,
-                               isset($this->arguments['verbose']) ? $this->arguments['verbose'] : false,
-                               isset($this->arguments['colors']) ? $this->arguments['colors'] : true,
-                               isset($this->arguments['debug']) ? $this->arguments['debug'] : false
-                       );
-               }
-
-               parent::handleCustomTestSuite();
-       }
-
        public function showHelp() {
                parent::showHelp();
 
@@ -87,30 +74,3 @@ EOT;
        }
 
 }
-
-class MediaWikiPHPUnitResultPrinter extends PHPUnit_TextUI_ResultPrinter {
-       /**
-        * Overrides original method to ignore incomplete tests except in verbose mode.
-        *
-        * @param  PHPUnit_Framework_TestResult  $result
-        */
-       protected function printIncompletes(PHPUnit_Framework_TestResult $result)
-       {
-               if ( $this->verbose ) {
-                       parent::printIncompletes( $result );
-               }
-       }
-
-       /**
-        * Overrides original method to ignore skipped tests except in verbose mode.
-        *
-        * @param  PHPUnit_Framework_TestResult  $result
-        */
-       protected function printSkipped(PHPUnit_Framework_TestResult $result)
-       {
-               if ( $this->verbose ) {
-                       parent::printSkipped( $result );
-               }
-       }
-
-}
old mode 100644 (file)
new mode 100755 (executable)