Documentation

PHPUnit_Framework_MockObject_Builder_Identity
in

Builder interface for unique identifiers.

Defines the interface for recording unique identifiers. The identifiers can be used to define the invocation order of expectations. The expectation is recorded using id() and then defined in order using PHPUnit_Framework_MockObject_Builder_Match::after().

Tags
since

Interface available since Release 1.0.0

Table of Contents

id()  : mixed
Sets the identification of the expectation to $id.

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