public function PHPUnit_Framework_TestCase::hasFailed in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/TestCase.php \PHPUnit_Framework_TestCase::hasFailed()
Returns whether or not this test has failed.
@since Method available since Release 3.0.0
Return value
bool
File
- vendor/
phpunit/ phpunit/ src/ Framework/ TestCase.php, line 574
Class
- PHPUnit_Framework_TestCase
- A TestCase defines the fixture to run multiple tests.
Code
public function hasFailed() {
$status = $this
->getStatus();
return $status == PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE || $status == PHPUnit_Runner_BaseTestRunner::STATUS_ERROR;
}