public function PHPUnit_Framework_MockObject_Stub_ReturnCallback::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/ReturnCallback.php, line 65

Class

PHPUnit_Framework_MockObject_Stub_ReturnCallback
@package PHPUnit_MockObject @author Sebastian Bergmann <sb@sebastian-bergmann.de> @copyright 2010-2013 Sebastian Bergmann <sb@sebastian-bergmann.de> @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause…

Code

public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation) {
  return call_user_func_array($this->callback, $invocation->parameters);
}