public function PHPUnit_Util_Log_JSON::addFailure in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Util/Log/JSON.php \PHPUnit_Util_Log_JSON::addFailure()
A failure occurred.
Parameters
PHPUnit_Framework_Test $test:
PHPUnit_Framework_AssertionFailedError $e:
float $time:
Overrides PHPUnit_Framework_TestListener::addFailure
File
- vendor/
phpunit/ phpunit/ src/ Util/ Log/ JSON.php, line 60
Class
- PHPUnit_Util_Log_JSON
- A TestListener that generates JSON messages.
Code
public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time) {
$this
->writeCase('fail', $time, PHPUnit_Util_Filter::getFilteredStacktrace($e, false), $e
->getMessage(), $test);
$this->currentTestPass = false;
}