Documentation

PHPUnit_Framework_SyntheticError extends PHPUnit_Framework_AssertionFailedError
in package

Creates a synthetic failed assertion.

Tags
since

Class available since Release 3.5.0

Table of Contents

$serializableTrace  : array<string|int, mixed>
$syntheticFile  : string
The synthetic file.
$syntheticLine  : int
The synthetic line number.
$syntheticTrace  : array<string|int, mixed>
The synthetic trace.
__construct()  : mixed
Constructor.
__sleep()  : mixed
__toString()  : string
getSerializableTrace()  : array<string|int, mixed>
Returns the serializable trace (without 'args').
getSyntheticFile()  : string
getSyntheticLine()  : int
getSyntheticTrace()  : array<string|int, mixed>
toString()  : string
Wrapper for getMessage() which is declared as final.

Properties

$serializableTrace

protected array<string|int, mixed> $serializableTrace

$syntheticFile

The synthetic file.

protected string $syntheticFile = ''

$syntheticLine

The synthetic line number.

protected int $syntheticLine = 0

$syntheticTrace

The synthetic trace.

protected array<string|int, mixed> $syntheticTrace = array()

Methods

__construct()

Constructor.

public __construct(string $message, int $code, string $file, int $line, array<string|int, mixed> $trace) : mixed
Parameters
$message : string
$code : int
$file : string
$line : int
$trace : array<string|int, mixed>
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>

getSyntheticFile()

public getSyntheticFile() : string
Return values
string

getSyntheticLine()

public getSyntheticLine() : int
Return values
int

getSyntheticTrace()

public getSyntheticTrace() : 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