class PHPUnit_Framework_MockObject_Stub_ReturnCallback implements PHPUnit_Framework_MockObject_Stub (View source)

Properties

protected $callback

Methods

__construct($callback)

No description

mixed
invoke(PHPUnit_Framework_MockObject_Invocation $invocation)

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

toString()

No description

Details

__construct($callback)

Parameters

$callback

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

toString()