Documentation

PHPUnit_Framework_MockObject_Builder_Match extends PHPUnit_Framework_MockObject_Builder_Stub
in

Builder interface for invocation order matches.

Tags
since

Interface available since Release 1.0.0

Table of Contents

after()  : PHPUnit_Framework_MockObject_Builder_Stub
Defines the expectation which must occur before the current is valid.
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
note

The identifier is unique per mock object.

Return values
mixed

Search results