interface PHPUnit_Framework_MockObject_Builder_Namespace (View source)

Interface for builders which can register builders with a given identification.

This interface relates to PHPUnitFrameworkMockObjectBuilderIdentity.

Methods

lookupId(string $id)

Looks up the match builder with identification $id and returns it.

registerId(string $id, PHPUnit_Framework_MockObject_Builder_Match $builder)

Registers the match builder $builder with the identification $id. The builder can later be looked up using lookupId() to figure out if it has been invoked.

Details

PHPUnit_Framework_MockObject_Builder_Match lookupId(string $id)

Looks up the match builder with identification $id and returns it.

Parameters

string $id The identification of the match builder

Return Value

PHPUnit_Framework_MockObject_Builder_Match

registerId(string $id, PHPUnit_Framework_MockObject_Builder_Match $builder)

Registers the match builder $builder with the identification $id. The builder can later be looked up using lookupId() to figure out if it has been invoked.

Parameters

string $id The identification of the match builder
PHPUnit_Framework_MockObject_Builder_Match $builder The builder which is being registered