Fakes the processing of the invocation $invocation by returning a specific value.
PHPUnit_Framework_MockObject_Invocation $invocation: The invocation which was mocked and matched by the current method and argument matchers.
mixed
Overrides PHPUnit_Framework_MockObject_Stub_Return::invoke
public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation) {
if (isset($invocation->parameters[$this->argumentIndex])) {
return $invocation->parameters[$this->argumentIndex];
}
else {
return NULL;
}
}