PHPUnit_Framework_MockObject_Builder_Stub
extends
PHPUnit_Framework_MockObject_Builder_Identity
in
Builder interface for stubs which are actions replacing an invocation.
Tags
Table of Contents
- id() : mixed
- Sets the identification of the expectation to $id.
- will() : PHPUnit_Framework_MockObject_Builder_Identity
- Stubs the matching method with the stub object $stub. Any invocations of the matched method will now be handled by the stub instead.
Methods
id()
Sets the identification of the expectation to $id.
public
id(string $id) : mixed
Parameters
- $id : string
-
Unique identifiation of expectation.
Tags
Return values
mixed —will()
Stubs the matching method with the stub object $stub. Any invocations of the matched method will now be handled by the stub instead.
public
will(PHPUnit_Framework_MockObject_Stub $stub) : PHPUnit_Framework_MockObject_Builder_Identity
Parameters
- $stub : PHPUnit_Framework_MockObject_Stub
-
The stub object.