PHPUnit_Framework_MockObject_Stub_ReturnArgument
extends PHPUnit_Framework_MockObject_Stub_Return
in package
Stubs a method by returning an argument that was passed to the mocked method.
Tags
Table of Contents
- $argumentIndex : mixed
- $value : mixed
- __construct() : mixed
- invoke() : mixed
- Fakes the processing of the invocation $invocation by returning a specific value.
- toString() : mixed
Properties
$argumentIndex
protected
mixed
$argumentIndex
$value
protected
mixed
$value
Methods
__construct()
public
__construct(mixed $argumentIndex) : mixed
Parameters
- $argumentIndex : mixed
Return values
mixed —invoke()
Fakes the processing of the invocation $invocation by returning a specific value.
public
invoke(PHPUnit_Framework_MockObject_Invocation $invocation) : mixed
Parameters
- $invocation : PHPUnit_Framework_MockObject_Invocation
-
The invocation which was mocked and matched by the current method and argument matchers.
Return values
mixed —toString()
public
toString() : mixed