PHPUnit_Framework_MockObject_Stub_ReturnValueMap
in package
implements
PHPUnit_Framework_MockObject_Stub
Stubs a method by returning a value from a map.
Tags
Interfaces, Classes and Traits
- PHPUnit_Framework_MockObject_Stub
- An object that stubs the process of a normal method for a mock object.
Table of Contents
- $valueMap : mixed
- __construct() : mixed
- invoke() : mixed
- Fakes the processing of the invocation $invocation by returning a specific value.
- toString() : mixed
Properties
$valueMap
protected
mixed
$valueMap
Methods
__construct()
public
__construct(array<string|int, mixed> $valueMap) : mixed
Parameters
- $valueMap : array<string|int, 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