public function PHPUnit_Framework_MockObject_Stub_Exception::invoke

Fakes the processing of the invocation $invocation by returning a specific value.

Parameters

PHPUnit_Framework_MockObject_Invocation $invocation: The invocation which was mocked and matched by the current method and argument matchers.

Return value

mixed

Overrides PHPUnit_Framework_MockObject_Stub::invoke

File

drupal/core/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/Exception.php, line 67

Class

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

Code

public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation) {
  throw $this->exception;
}