PHPUnit_Framework_MockObject_Stub
extends
PHPUnit_Framework_SelfDescribing
in
An object that stubs the process of a normal method for a mock object.
The stub object will replace the code for the stubbed method and return a specific value instead of the original value.
Tags
Table of Contents
- invoke() : mixed
- Fakes the processing of the invocation $invocation by returning a specific value.
- toString() : string
- Returns a string representation of the object.
Methods
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()
Returns a string representation of the object.
public
toString() : string