public function PHPUnit_Framework_MockObject_Stub_Return::invoke in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Stub/Return.php \PHPUnit_Framework_MockObject_Stub_Return::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
1 method overrides PHPUnit_Framework_MockObject_Stub_Return::invoke()
- PHPUnit_Framework_MockObject_Stub_ReturnArgument::invoke in vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Stub/ ReturnArgument.php - Fakes the processing of the invocation $invocation by returning a specific value.
File
- vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Stub/ Return.php, line 27
Class
- PHPUnit_Framework_MockObject_Stub_Return
- Stubs a method by returning a user-defined value.
Code
public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation) {
return $this->value;
}