public function PHPUnit_TextUI_ResultPrinter::endTest in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php \PHPUnit_TextUI_ResultPrinter::endTest()
A test ended.
Parameters
PHPUnit_Framework_Test $test:
float $time:
Overrides PHPUnit_Framework_TestListener::endTest
File
- vendor/
phpunit/ phpunit/ src/ TextUI/ ResultPrinter.php, line 498
Class
- PHPUnit_TextUI_ResultPrinter
- Prints the result of a TextUI TestRunner run.
Code
public function endTest(PHPUnit_Framework_Test $test, $time) {
if (!$this->lastTestFailed) {
$this
->writeProgress('.');
}
if ($test instanceof PHPUnit_Framework_TestCase) {
$this->numAssertions += $test
->getNumAssertions();
}
elseif ($test instanceof PHPUnit_Extensions_PhptTestCase) {
$this->numAssertions++;
}
$this->lastTestFailed = false;
if ($test instanceof PHPUnit_Framework_TestCase) {
if (!$test
->hasExpectationOnOutput()) {
$this
->write($test
->getActualOutput());
}
}
}