You are here

public function PHPUnit_Framework_Exception::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/src/Framework/Exception.php \PHPUnit_Framework_Exception::__construct()
4 calls to PHPUnit_Framework_Exception::__construct()
PHPUnit_Framework_Error::__construct in vendor/phpunit/phpunit/src/Framework/Error.php
Constructor.
PHPUnit_Framework_ExceptionWrapper::__construct in vendor/phpunit/phpunit/src/Framework/ExceptionWrapper.php
PHPUnit_Framework_ExpectationFailedException::__construct in vendor/phpunit/phpunit/src/Framework/ExpectationFailedException.php
PHPUnit_Framework_SyntheticError::__construct in vendor/phpunit/phpunit/src/Framework/SyntheticError.php
Constructor.
4 methods override PHPUnit_Framework_Exception::__construct()
PHPUnit_Framework_Error::__construct in vendor/phpunit/phpunit/src/Framework/Error.php
Constructor.
PHPUnit_Framework_ExceptionWrapper::__construct in vendor/phpunit/phpunit/src/Framework/ExceptionWrapper.php
PHPUnit_Framework_ExpectationFailedException::__construct in vendor/phpunit/phpunit/src/Framework/ExpectationFailedException.php
PHPUnit_Framework_SyntheticError::__construct in vendor/phpunit/phpunit/src/Framework/SyntheticError.php
Constructor.

File

vendor/phpunit/phpunit/src/Framework/Exception.php, line 40

Class

PHPUnit_Framework_Exception
Base class for all PHPUnit Framework exceptions.

Code

public function __construct($message = '', $code = 0, Exception $previous = null) {
  parent::__construct($message, $code, $previous);
  $this->serializableTrace = $this
    ->getTrace();
  foreach ($this->serializableTrace as $i => $call) {
    unset($this->serializableTrace[$i]['args']);
  }
}