file-fetcher
Public Member Functions | Protected Attributes | List of all members
PHPUnit\Framework\ExceptionWrapper Class Reference
Inheritance diagram for PHPUnit\Framework\ExceptionWrapper:
PHPUnit\Framework\Exception PHPUnit\Exception

Detailed Description

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.

Public Member Functions

 __construct (Throwable $t)
 
 __toString ()
 
 getClassName ()
 
 getPreviousWrapped ()
 
 setClassName (string $className)
 
 setOriginalException (Throwable $t)
 
 getOriginalException ()
 
- Public Member Functions inherited from PHPUnit\Framework\Exception
 __construct ($message='', $code=0, \Throwable $previous=null)
 
 __sleep ()
 
 getSerializableTrace ()
 

Protected Attributes

 $className
 
 $previous
 
- Protected Attributes inherited from PHPUnit\Framework\Exception
 $serializableTrace
 

Constructor & Destructor Documentation

◆ __construct()

PHPUnit\Framework\ExceptionWrapper::__construct ( Throwable  $t)

Member Function Documentation

◆ __toString()

PHPUnit\Framework\ExceptionWrapper::__toString ( )

Reimplemented from PHPUnit\Framework\Exception.

◆ getClassName()

PHPUnit\Framework\ExceptionWrapper::getClassName ( )

◆ getOriginalException()

PHPUnit\Framework\ExceptionWrapper::getOriginalException ( )

◆ getPreviousWrapped()

PHPUnit\Framework\ExceptionWrapper::getPreviousWrapped ( )

◆ setClassName()

PHPUnit\Framework\ExceptionWrapper::setClassName ( string  $className)

◆ setOriginalException()

PHPUnit\Framework\ExceptionWrapper::setOriginalException ( Throwable  $t)

Member Data Documentation

◆ $className

PHPUnit\Framework\ExceptionWrapper::$className
protected

◆ $previous

PHPUnit\Framework\ExceptionWrapper::$previous
protected

The documentation for this class was generated from the following file: