public function PHPUnit_Framework_TestFailure::isFailure

Returns TRUE if the thrown exception is of type AssertionFailedError.

Return value

boolean

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestFailure.php, line 175

Class

PHPUnit_Framework_TestFailure
A TestFailure collects a failed test together with the caught exception.

Code

public function isFailure() {
  return $this
    ->thrownException() instanceof PHPUnit_Framework_AssertionFailedError;
}