ExpectationFailedException
class ExpectationFailedException extends AssertionFailedError (View source)
Exception for expectations which failed their check.
The exception contains the error message and optionally a SebastianBergmann\Comparator\ComparisonFailure which is used to generate diff output of the failed expectations.
Properties
protected array | $serializableTrace | from Exception | |
protected | $comparisonFailure |
Methods
__construct($message, ComparisonFailure $comparisonFailure = null, Exception $previous = null)
No description
null|ComparisonFailure
getComparisonFailure()
No description
Details
at line 30
__construct($message, ComparisonFailure $comparisonFailure = null, Exception $previous = null)
array
getSerializableTrace()
Returns the serializable trace (without 'args').
in AssertionFailedError at line 23
string
toString()
Wrapper for getMessage() which is declared as final.