X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FMediaWikiPHPUnitTestListener.php;h=6f982ad27dd2312e03ffaad8bb830fe94bfd935c;hb=4ab8dc680e016d9b33c7f16188c14bf11c008e42;hp=0a162a283de887f9a759533db83b9945b74ba393;hpb=0ded00ab4c6dc1ad4e961412d357080a0a5a056d;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/MediaWikiPHPUnitTestListener.php b/tests/phpunit/MediaWikiPHPUnitTestListener.php index 0a162a283d..6f982ad27d 100644 --- a/tests/phpunit/MediaWikiPHPUnitTestListener.php +++ b/tests/phpunit/MediaWikiPHPUnitTestListener.php @@ -1,7 +1,6 @@ logChannel, 'ERROR in ' . $this->getTestName( $test ) . ': ' . $this->getErrorName( $e ) @@ -50,7 +48,6 @@ class MediaWikiPHPUnitTestListener 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,7 +62,6 @@ class MediaWikiPHPUnitTestListener * @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 ) @@ -80,7 +76,6 @@ class MediaWikiPHPUnitTestListener * @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 ) @@ -93,7 +88,6 @@ class MediaWikiPHPUnitTestListener * @param PHPUnit_Framework_TestSuite $suite */ public function startTestSuite( PHPUnit_Framework_TestSuite $suite ) { - parent::startTestSuite( $suite ); wfDebugLog( $this->logChannel, 'START suite ' . $suite->getName() ); } @@ -103,7 +97,6 @@ class MediaWikiPHPUnitTestListener * @param PHPUnit_Framework_TestSuite $suite */ public function endTestSuite( PHPUnit_Framework_TestSuite $suite ) { - parent::endTestSuite( $suite ); wfDebugLog( $this->logChannel, 'END suite ' . $suite->getName() ); } @@ -113,7 +106,7 @@ class MediaWikiPHPUnitTestListener * @param PHPUnit_Framework_Test $test */ public function startTest( PHPUnit_Framework_Test $test ) { - parent::startTest( $test ); + Hooks::run( 'MediaWikiPHPUnitTest::startTest', [ $test ] ); wfDebugLog( $this->logChannel, 'Start test ' . $this->getTestName( $test ) ); } @@ -124,7 +117,7 @@ class MediaWikiPHPUnitTestListener * @param float $time */ public function endTest( PHPUnit_Framework_Test $test, $time ) { - parent::endTest( $test, $time ); + Hooks::run( 'MediaWikiPHPUnitTest::endTest', [ $test, $time ] ); wfDebugLog( $this->logChannel, 'End test ' . $this->getTestName( $test ) ); } }