interface PHPUnit_Framework_MockObject_Builder_Identity (View source)

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 PHPUnitFrameworkMockObjectBuilderMatch::after().

Methods

id(string $id)

Sets the identification of the expectation to $id.

Details

id(string $id)

Sets the identification of the expectation to $id.

Parameters

string $id Unique identification of expectation.