Documentation

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
since

Class available since Release 3.0.0

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

$serializableTrace

protected array<string|int, mixed> $serializableTrace

Methods

__sleep()

public __sleep() : mixed
Return values
mixed

__toString()

public __toString() : string
Return values
string

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
Return values
string

Search results