interface PHPUnit_Framework_MockObject_Stub implements SelfDescribing (View source)

An object that stubs the process of a normal method for a mock object.

The stub object will replace the code for the stubbed method and return a specific value instead of the original value.

Methods

mixed
invoke(PHPUnit_Framework_MockObject_Invocation $invocation)

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

Details

mixed invoke(PHPUnit_Framework_MockObject_Invocation $invocation)

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