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
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
$classname
protected
string
$classname
$previous
protected
PHPUnit_Framework_ExceptionWrapper|null
$previous
$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 —__toString()
public
__toString() : string
Return values
string —getClassname()
public
getClassname() : string
Return values
string —getPreviousWrapped()
public
getPreviousWrapped() : PHPUnit_Framework_ExceptionWrapper
Return values
PHPUnit_Framework_ExceptionWrapper —getSerializableTrace()
Returns the serializable trace (without 'args').
public
getSerializableTrace() : array<string|int, mixed>