\PHPUnit_Framework_ExceptionWrapper

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.

Synopsis

class PHPUnit_Framework_ExceptionWrapper extends PHPUnit_Framework_Exception {
  • // members
  • protected string $classname;
  • protected PHPUnit_Framework_ExceptionWrapper|null $previous;
  • // Inherited members from PHPUnit_Framework_Exception
  • protected array $serializableTrace;
  • // Inherited members from RuntimeException
  • protected  $message;
  • protected  $code;
  • protected  $file;
  • protected  $line;
  • // Inherited members from Exception
  • protected  $message;
  • protected  $code;
  • protected  $file;
  • protected  $line;
}

Hierarchy

Violations

PHPMessDetector

Line Rule Message
86 UnusedLocalVariable Avoid unused local variables such as '$call'.

Members

protected

  • $classname — string
  • $code — int
    The exception code
  • $code — int
    The exception code
  • $file — string
    The filename where the exception was created
  • $file — string
    The filename where the exception was created
  • $line — int
    The line where the exception was created
  • $line — int
    The line where the exception was created
  • $message — string
    The exception message
  • $message — string
    The exception message
  • $serializableTrace — array

Methods

public

Inherited from PHPUnit_Framework_Exception

public

Inherited from RuntimeException

public

Inherited from Exception

public

History