Documentation

PHPUnit_Framework_ExceptionWrapper extends PHPUnit_Framework_Exception
in package

Wraps Exceptions thrown by code under test.

Re-instantiates Exceptions thrown by user-space code to retain their original class names, properties, and stack traces (but without arguments).

Unlike PHPUnit_Framework_Exception, the complete stack of previous Exceptions is processed.

Tags
since

Class available since Release 4.3.0

Table of Contents

$classname  : string
$previous  : PHPUnit_Framework_ExceptionWrapper|null
$serializableTrace  : array<string|int, mixed>
__construct()  : mixed
__sleep()  : mixed
__toString()  : string
getClassname()  : string
getPreviousWrapped()  : PHPUnit_Framework_ExceptionWrapper
getSerializableTrace()  : array<string|int, mixed>
Returns the serializable trace (without 'args').

Properties

$serializableTrace

protected array<string|int, mixed> $serializableTrace

Methods

__construct()

public __construct(Throwable|Exception $e) : mixed
Parameters
$e : Throwable|Exception
Return values
mixed

__sleep()

public __sleep() : mixed
Return values
mixed

getSerializableTrace()

Returns the serializable trace (without 'args').

public getSerializableTrace() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results