class PHPUnit_Framework_MockObject_Stub_ReturnArgument extends PHPUnit_Framework_MockObject_Stub_Return (View source)

Stubs a method by returning an argument that was passed to the mocked method.

Properties

protected $value from PHPUnit_Framework_MockObject_Stub_Return
protected $argumentIndex

Methods

__construct($argumentIndex)

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($argumentIndex)

Parameters

$argumentIndex

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()