4 extends PHPUnit_TextUI_ResultPrinter implements PHPUnit_Framework_TestListener {
11 protected function getTestName( PHPUnit_Framework_Test $test ) {
12 $name = get_class( $test );
14 if ( $test instanceof PHPUnit\Framework\TestCase ) {
15 $name .=
'::' . $test->getName(
true );
22 $name = get_class( $exception );
23 $name =
"[$name] " . $exception->getMessage();
36 parent::addError( $test,
$e,
$time );
50 public function addFailure( PHPUnit_Framework_Test $test,
51 PHPUnit_Framework_AssertionFailedError
$e,
$time
53 parent::addFailure( $test,
$e,
$time );
68 parent::addIncompleteTest( $test,
$e,
$time );
83 parent::addSkippedTest( $test,
$e,
$time );
96 parent::startTestSuite( $suite );
97 wfDebugLog( $this->logChannel,
'START suite ' . $suite->getName() );
106 parent::endTestSuite( $suite );
107 wfDebugLog( $this->logChannel,
'END suite ' . $suite->getName() );
115 public function startTest( PHPUnit_Framework_Test $test ) {
116 parent::startTest( $test );
127 parent::endTest( $test,
$time );
wfDebugLog( $logGroup, $text, $dest='all', array $context=[])
Send a line to a supplementary debug log file, if configured, or main debug log if not.
see documentation in includes Linker php for Linker::makeImageLink & $time
Allows to change the fields on the form that will be generated $name
returning false will NOT prevent logging $e