PHPUnit_Framework_TestFailure::isFailure

Returns true if the thrown exception is of type AssertionFailedError.