interface PHPUnit_Framework_MockObject_Builder_Match implements PHPUnit_Framework_MockObject_Builder_Stub (View source)

Builder interface for invocation order matches.

Methods

id(string $id)

Sets the identification of the expectation to $id.

will(PHPUnit_Framework_MockObject_Stub $stub)

Stubs the matching method with the stub object $stub. Any invocations of the matched method will now be handled by the stub instead.

after(string $id)

Defines the expectation which must occur before the current is valid.

Details

id(string $id)

Sets the identification of the expectation to $id.

Parameters

string $id Unique identification of expectation.

PHPUnit_Framework_MockObject_Builder_Identity will(PHPUnit_Framework_MockObject_Stub $stub)

Stubs the matching method with the stub object $stub. Any invocations of the matched method will now be handled by the stub instead.

PHPUnit_Framework_MockObject_Builder_Stub after(string $id)

Defines the expectation which must occur before the current is valid.

Parameters

string $id The identification of the expectation that should occur before this one.

Return Value

PHPUnit_Framework_MockObject_Builder_Stub