You are here

public function PHPUnit_Framework_MockObject_Stub_Exception::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/Exception.php \PHPUnit_Framework_MockObject_Stub_Exception::__construct()

File

vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/Exception.php, line 22

Class

PHPUnit_Framework_MockObject_Stub_Exception
Stubs a method by raising a user-defined exception.

Code

public function __construct(Exception $exception) {
  $this->exception = $exception;
}