Returns whether or not this test has failed.
@since Method available since Release 3.0.0
boolean
public function hasFailed() {
$status = $this
->getStatus();
return $status == PHPUnit_Runner_BaseTestRunner::STATUS_FAILURE || $status == PHPUnit_Runner_BaseTestRunner::STATUS_ERROR;
}