class PHPUnit_Framework_ExceptionWrapper extends PHPUnit_Framework_Exception (View source)

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.

Properties

protected array $serializableTrace from PHPUnit_Framework_Exception
protected string $className
protected PHPUnit_Framework_ExceptionWrapper|null $previous

Methods

__construct(Throwable|Exception $e)

No description

array
getSerializableTrace()

Returns the serializable trace (without 'args').

string
__toString()

No description

__sleep()

No description

string
getClassName()

No description

Details

__construct(Throwable|Exception $e)

Parameters

Throwable|Exception $e

array getSerializableTrace()

Returns the serializable trace (without 'args').

Return Value

array

string __toString()

Return Value

string

string getClassName()

Return Value

string