class PHPUnit_Framework_MockObject_InvocationMocker implements PHPUnit_Framework_MockObject_Stub_MatcherCollection, PHPUnit_Framework_MockObject_Invokable, PHPUnit_Framework_MockObject_Builder_Namespace (View source)

Mocker for invocations which are sent from PHPUnitFrameworkMockObject_MockObject objects.

Keeps track of all expectations and stubs as well as registering identifications for builders.

Properties

protected PHPUnit_Framework_MockObject_Matcher_Invocation[] $matchers
protected PHPUnit_Framework_MockObject_Builder_Match[] $builderMap

Methods

__construct(array $configurableMethods)

No description

hasMatchers()

No description

registerId(string $id, PHPUnit_Framework_MockObject_Builder_Match $builder)

No description

object
invoke(PHPUnit_Framework_MockObject_Invocation $invocation)

No description

bool
matches(PHPUnit_Framework_MockObject_Invocation $invocation)

No description

verify()

No description

Details

__construct(array $configurableMethods)

Parameters

array $configurableMethods

addMatcher(PHPUnit_Framework_MockObject_Matcher_Invocation $matcher)

Parameters

PHPUnit_Framework_MockObject_Matcher_Invocation $matcher Matcher for invocations to mock objects

hasMatchers()

PHPUnit_Framework_MockObject_Builder_Match lookupId(string $id)

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)

Parameters

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

Exceptions

PHPUnit_Framework_MockObject_RuntimeException

object invoke(PHPUnit_Framework_MockObject_Invocation $invocation)

Parameters

PHPUnit_Framework_MockObject_Invocation $invocation The invocation object passed from mock object

Return Value

object

Exceptions

Exception

bool matches(PHPUnit_Framework_MockObject_Invocation $invocation)

Parameters

PHPUnit_Framework_MockObject_Invocation $invocation The invocation object passed from mock object

Return Value

bool

verify()