Documentation

PHPUnit_Framework_AssertionFailedError extends PHPUnit_Framework_Exception
in package
implements PHPUnit_Framework_SelfDescribing

Thrown when an assertion failed.

Tags
since

Class available since Release 2.0.0

Interfaces, Classes and Traits

PHPUnit_Framework_SelfDescribing
Interface for classes that can return a description of itself.

Table of Contents

$serializableTrace  : array<string|int, mixed>
__construct()  : mixed
__sleep()  : mixed
__toString()  : string
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

__construct()

public __construct([mixed $message = '' ], mixed $code[, Exception $previous = null ]) : mixed
Parameters
$message : mixed = ''
$code : mixed
$previous : Exception = null
Return values
mixed

__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