public function PHPUnit_Util_Log_TAP::endTest

A test ended.

Parameters

PHPUnit_Framework_Test $test:

float $time:

Overrides PHPUnit_Framework_TestListener::endTest

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Util/Log/TAP.php, line 216

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)));
  }
}