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()

No description

__sleep()

No description

string
toString()

Wrapper for getMessage() which is declared as final.

ComparisonFailure
getComparisonFailure()

No description

Details

__construct($message, ComparisonFailure $comparisonFailure = null, Exception $previous = null)

Parameters

$message
ComparisonFailure $comparisonFailure
Exception $previous

array getSerializableTrace()

Returns the serializable trace (without 'args').

Return Value

array

string __toString()

Return Value

string

string toString()

Wrapper for getMessage() which is declared as final.

Return Value

string

ComparisonFailure getComparisonFailure()

Return Value

ComparisonFailure