X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FMediaWikiPHPUnitTestListener.php;h=dd606d8a4bf30a9df2f55d4b091b9b3d9b92c5f5;hb=cf0ebed65ad14dc9a48b0d69e0d77fc5f4f83e92;hp=8c761b90d63e943e404f206ef2f2d03b04e1745d;hpb=66d3eb56afc737e4e5ee66f7cad1dc78d1aec6b0;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/MediaWikiPHPUnitTestListener.php b/tests/phpunit/MediaWikiPHPUnitTestListener.php index 8c761b90d6..dd606d8a4b 100644 --- a/tests/phpunit/MediaWikiPHPUnitTestListener.php +++ b/tests/phpunit/MediaWikiPHPUnitTestListener.php @@ -1,14 +1,12 @@ logChannel = $logChannel; - } + protected $logChannel = 'PHPUnitCommand'; protected function getTestName( PHPUnit_Framework_Test $test ) { $name = get_class( $test ); @@ -35,6 +33,7 @@ class MediaWikiPHPUnitTestListener implements PHPUnit_Framework_TestListener { * @param float $time */ public function addError( PHPUnit_Framework_Test $test, Exception $e, $time ) { + parent::addError( $test, $e, $time ); wfDebugLog( $this->logChannel, 'ERROR in ' . $this->getTestName( $test ) . ': ' . $this->getErrorName( $e ) @@ -51,6 +50,7 @@ class MediaWikiPHPUnitTestListener implements PHPUnit_Framework_TestListener { public function addFailure( PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time ) { + parent::addFailure( $test, $e, $time ); wfDebugLog( $this->logChannel, 'FAILURE in ' . $this->getTestName( $test ) . ': ' . $this->getErrorName( $e ) @@ -65,6 +65,7 @@ class MediaWikiPHPUnitTestListener implements PHPUnit_Framework_TestListener { * @param float $time */ public function addIncompleteTest( PHPUnit_Framework_Test $test, Exception $e, $time ) { + parent::addIncompleteTest( $test, $e, $time ); wfDebugLog( $this->logChannel, 'Incomplete test ' . $this->getTestName( $test ) . ': ' . $this->getErrorName( $e ) @@ -79,6 +80,7 @@ class MediaWikiPHPUnitTestListener implements PHPUnit_Framework_TestListener { * @param float $time */ public function addSkippedTest( PHPUnit_Framework_Test $test, Exception $e, $time ) { + parent::addSkippedTest( $test, $e, $time ); wfDebugLog( $this->logChannel, 'Skipped test ' . $this->getTestName( $test ) . ': ' . $this->getErrorName( $e ) @@ -91,6 +93,7 @@ class MediaWikiPHPUnitTestListener implements PHPUnit_Framework_TestListener { * @param PHPUnit_Framework_TestSuite $suite */ public function startTestSuite( PHPUnit_Framework_TestSuite $suite ) { + parent::startTestSuite( $suite ); wfDebugLog( $this->logChannel, 'START suite ' . $suite->getName() ); } @@ -100,6 +103,7 @@ class MediaWikiPHPUnitTestListener implements PHPUnit_Framework_TestListener { * @param PHPUnit_Framework_TestSuite $suite */ public function endTestSuite( PHPUnit_Framework_TestSuite $suite ) { + parent::endTestSuite( $suite ); wfDebugLog( $this->logChannel, 'END suite ' . $suite->getName() ); } @@ -109,6 +113,7 @@ class MediaWikiPHPUnitTestListener implements PHPUnit_Framework_TestListener { * @param PHPUnit_Framework_Test $test */ public function startTest( PHPUnit_Framework_Test $test ) { + parent::startTest( $test ); wfDebugLog( $this->logChannel, 'Start test ' . $this->getTestName( $test ) ); } @@ -119,6 +124,7 @@ class MediaWikiPHPUnitTestListener implements PHPUnit_Framework_TestListener { * @param float $time */ public function endTest( PHPUnit_Framework_Test $test, $time ) { + parent::endTest( $test, $time ); wfDebugLog( $this->logChannel, 'End test ' . $this->getTestName( $test ) ); } }