MediaWiki REL1_33
|
Replaces the logging SPI on each test run. More...
Public Member Functions | |
addError (PHPUnit_Framework_Test $test, Exception $e, $time) | |
addFailure (PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) | |
addIncompleteTest (PHPUnit_Framework_Test $test, Exception $e, $time) | |
addRiskyTest (PHPUnit_Framework_Test $test, Exception $e, $time) | |
addSkippedTest (PHPUnit_Framework_Test $test, Exception $e, $time) | |
addWarning (PHPUnit_Framework_Test $test, PHPUnit\Framework\Warning $e, $time) | |
endTest (PHPUnit_Framework_Test $test, $time) | |
A test ended. | |
startTest (PHPUnit_Framework_Test $test) | |
A test started. | |
Private Member Functions | |
augmentTestWithLogs (PHPUnit_Framework_Test $test) | |
formatLogs (array $logs) | |
Get string formatted logs generated during the last test to execute. | |
Private Attributes | |
Spi null | $originalSpi |
Spi null | $spi |
Replaces the logging SPI on each test run.
This allows another component (the printer) to fetch the logs when reporting why a test failed.
Definition at line 12 of file MediaWikiLoggerPHPUnitTestListener.php.
MediaWikiLoggerPHPUnitTestListener::addError | ( | PHPUnit_Framework_Test | $test, |
Exception | $e, | ||
$time ) |
Definition at line 42 of file MediaWikiLoggerPHPUnitTestListener.php.
References augmentTestWithLogs().
MediaWikiLoggerPHPUnitTestListener::addFailure | ( | PHPUnit_Framework_Test | $test, |
PHPUnit_Framework_AssertionFailedError | $e, | ||
$time ) |
Definition at line 50 of file MediaWikiLoggerPHPUnitTestListener.php.
References augmentTestWithLogs().
MediaWikiLoggerPHPUnitTestListener::addIncompleteTest | ( | PHPUnit_Framework_Test | $test, |
Exception | $e, | ||
$time ) |
Definition at line 34 of file MediaWikiLoggerPHPUnitTestListener.php.
References augmentTestWithLogs().
MediaWikiLoggerPHPUnitTestListener::addRiskyTest | ( | PHPUnit_Framework_Test | $test, |
Exception | $e, | ||
$time ) |
Definition at line 30 of file MediaWikiLoggerPHPUnitTestListener.php.
References augmentTestWithLogs().
MediaWikiLoggerPHPUnitTestListener::addSkippedTest | ( | PHPUnit_Framework_Test | $test, |
Exception | $e, | ||
$time ) |
Definition at line 38 of file MediaWikiLoggerPHPUnitTestListener.php.
References augmentTestWithLogs().
MediaWikiLoggerPHPUnitTestListener::addWarning | ( | PHPUnit_Framework_Test | $test, |
PHPUnit\Framework\Warning | $e, | ||
$time ) |
Definition at line 46 of file MediaWikiLoggerPHPUnitTestListener.php.
References augmentTestWithLogs().
|
private |
Definition at line 56 of file MediaWikiLoggerPHPUnitTestListener.php.
References and(), and formatLogs().
Referenced by addError(), addFailure(), addIncompleteTest(), addRiskyTest(), addSkippedTest(), and addWarning().
MediaWikiLoggerPHPUnitTestListener::endTest | ( | PHPUnit_Framework_Test | $test, |
$time ) |
A test ended.
PHPUnit_Framework_Test | $test | |
float | $time |
Definition at line 70 of file MediaWikiLoggerPHPUnitTestListener.php.
|
private |
Get string formatted logs generated during the last test to execute.
array | $logs |
Definition at line 83 of file MediaWikiLoggerPHPUnitTestListener.php.
References and().
Referenced by augmentTestWithLogs().
MediaWikiLoggerPHPUnitTestListener::startTest | ( | PHPUnit_Framework_Test | $test | ) |
A test started.
PHPUnit_Framework_Test | $test |
Definition at line 23 of file MediaWikiLoggerPHPUnitTestListener.php.
Definition at line 14 of file MediaWikiLoggerPHPUnitTestListener.php.
Definition at line 16 of file MediaWikiLoggerPHPUnitTestListener.php.