PHPUnit_Framework_ExpectationFailedException
class PHPUnit_Framework_ExpectationFailedException extends PHPUnit_Framework_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 PHPUnit_Framework_Exception | |
protected ComparisonFailure | $comparisonFailure |
Methods
__construct($message, ComparisonFailure $comparisonFailure = null, Exception $previous = null)
No description
array
getSerializableTrace()
Returns the serializable trace (without 'args').
string
toString()
Wrapper for getMessage() which is declared as final.
ComparisonFailure
getComparisonFailure()
No description
Details
at line 25
__construct($message, ComparisonFailure $comparisonFailure = null, Exception $previous = null)
array
getSerializableTrace()
Returns the serializable trace (without 'args').
string
__toString()
__sleep()
string
toString()
Wrapper for getMessage() which is declared as final.