public function PHPUnit_Framework_TestCase::hasFailed

Returns whether or not this test has failed.

@since Method available since Release 3.0.0

Return value

boolean

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php, line 662

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;
}