PHP Class PHPUnit_Framework_ExceptionWrapper, phpunit

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.
Author: Daniel F. Kudwien ([email protected])
Inheritance: extends PHPUnit_Framework_Exception
Show file Open project: sebastianbergmann/phpunit Class Usage Examples

Protected Properties

Property Type Description
$classname string
$previous PHPUnit_Framework_ExceptionWrapper | null

Public Methods

Method Description
__construct ( Throwable $t )
__toString ( ) : string
getClassname ( ) : string
getPreviousWrapped ( ) : PHPUnit_Framework_ExceptionWrapper

Method Details

__construct() public method

public __construct ( Throwable $t )
$t Throwable

__toString() public method

public __toString ( ) : string
return string

getClassname() public method

public getClassname ( ) : string
return string

getPreviousWrapped() public method

public getPreviousWrapped ( ) : PHPUnit_Framework_ExceptionWrapper
return PHPUnit_Framework_ExceptionWrapper

Property Details

$classname protected property

protected string $classname
return string

$previous protected property

protected PHPUnit_Framework_ExceptionWrapper|null $previous
return PHPUnit_Framework_ExceptionWrapper | null