You are here

public function PHPUnit_Util_Log_TAP::endTest in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/src/Util/Log/TAP.php \PHPUnit_Util_Log_TAP::endTest()

A test ended.

Parameters

PHPUnit_Framework_Test $test:

float $time:

Overrides PHPUnit_Framework_TestListener::endTest

File

vendor/phpunit/phpunit/src/Util/Log/TAP.php, line 196

Class

PHPUnit_Util_Log_TAP
A TestListener that generates a logfile of the test execution using the Test Anything Protocol (TAP).

Code

public function endTest(PHPUnit_Framework_Test $test, $time) {
  if ($this->testSuccessful === true) {
    $this
      ->write(sprintf("ok %d - %s\n", $this->testNumber, PHPUnit_Util_Test::describe($test)));
  }
  $this
    ->writeDiagnostics($test);
}