public function PHPUnit_Framework_TestResult::endTest in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/TestResult.php \PHPUnit_Framework_TestResult::endTest()
Informs the result that a test was completed.
Parameters
PHPUnit_Framework_Test $test:
float $time:
1 call to PHPUnit_Framework_TestResult::endTest()
- PHPUnit_Framework_TestResult::run in vendor/
phpunit/ phpunit/ src/ Framework/ TestResult.php - Runs a TestCase.
File
- vendor/
phpunit/ phpunit/ src/ Framework/ TestResult.php, line 335
Class
- PHPUnit_Framework_TestResult
- A TestResult collects the results of executing a test case.
Code
public function endTest(PHPUnit_Framework_Test $test, $time) {
foreach ($this->listeners as $listener) {
$listener
->endTest($test, $time);
}
if (!$this->lastTestFailed && $test instanceof PHPUnit_Framework_TestCase) {
$class = get_class($test);
$key = $class . '::' . $test
->getName();
$this->passed[$key] = array(
'result' => $test
->getResult(),
'size' => PHPUnit_Util_Test::getSize($class, $test
->getName(false)),
);
$this->time += $time;
}
}