You are here

public function PHPUnit_Util_Log_JSON::endTest in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Util/Log/JSON.php \PHPUnit_Util_Log_JSON::endTest()

A test ended.

Parameters

PHPUnit_Framework_Test $test:

float $time:

Overrides PHPUnit_Framework_TestListener::endTest

File

vendor/phpunit/phpunit/src/Util/Log/JSON.php, line 189

Class

PHPUnit_Util_Log_JSON
A TestListener that generates JSON messages.

Code

public function endTest(PHPUnit_Framework_Test $test, $time) {
  if ($this->currentTestPass) {
    $this
      ->writeCase('pass', $time, array(), '', $test);
  }
}