You are here

public function PHPUnit_Framework_TestFailure::isFailure in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/src/Framework/TestFailure.php \PHPUnit_Framework_TestFailure::isFailure()

Returns true if the thrown exception is of type AssertionFailedError.

Return value

bool

File

vendor/phpunit/phpunit/src/Framework/TestFailure.php, line 159

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