PHPUnit_Framework_MockObject_Stub_ReturnArgument
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
at line 18
__construct($argumentIndex)
at line 23
mixed
invoke(PHPUnit_Framework_MockObject_Invocation $invocation)
Fakes the processing of the invocation $invocation by returning a specific value.