PHPUnit_Framework_ExpectationFailedException
extends PHPUnit_Framework_AssertionFailedError
in package
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.
Tags
Table of Contents
- $comparisonFailure : ComparisonFailure
- $serializableTrace : array<string|int, mixed>
- __construct() : mixed
- __sleep() : mixed
- __toString() : string
- getComparisonFailure() : ComparisonFailure
- getSerializableTrace() : array<string|int, mixed>
- Returns the serializable trace (without 'args').
- toString() : string
- Wrapper for getMessage() which is declared as final.
Properties
$comparisonFailure
protected
ComparisonFailure
$comparisonFailure
$serializableTrace
protected
array<string|int, mixed>
$serializableTrace
Methods
__construct()
public
__construct(mixed $message[, ComparisonFailure $comparisonFailure = null ][, Exception $previous = null ]) : mixed
Parameters
- $message : mixed
- $comparisonFailure : ComparisonFailure = null
- $previous : Exception = null
Return values
mixed —__sleep()
public
__sleep() : mixed
Return values
mixed —__toString()
public
__toString() : string
Return values
string —getComparisonFailure()
public
getComparisonFailure() : ComparisonFailure
Return values
ComparisonFailure —getSerializableTrace()
Returns the serializable trace (without 'args').
public
getSerializableTrace() : array<string|int, mixed>
Return values
array<string|int, mixed> —toString()
Wrapper for getMessage() which is declared as final.
public
toString() : string