public function 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 drupal/core/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Stub/ReturnArgument.php
Fakes the processing of the invocation $invocation by returning a specific value.

File

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

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;
}