class PHPUnit_Framework_MockObject_Matcher implements PHPUnit_Framework_MockObject_Matcher_Invocation (View source)

Main matcher which defines a full expectation using method, parameter and invocation matchers.

This matcher encapsulates all the other matchers and allows the builder to set the specific matchers when the appropriate methods are called (once(), where() etc.).

All properties are public so that they can easily be accessed by the builder.

Properties

PHPUnit_Framework_MockObject_Matcher_Invocation $invocationMatcher
mixed $afterMatchBuilderId
bool $afterMatchBuilderIsInvoked
PHPUnit_Framework_MockObject_Matcher_MethodName $methodNameMatcher
PHPUnit_Framework_MockObject_Matcher_Parameters $parametersMatcher
PHPUnit_Framework_MockObject_Stub $stub

Methods

string
toString()

No description

mixed
invoked(PHPUnit_Framework_MockObject_Invocation $invocation)

No description

bool
matches(PHPUnit_Framework_MockObject_Invocation $invocation)

No description

verify()

No description

hasMatchers()

No description

Details

__construct(PHPUnit_Framework_MockObject_Matcher_Invocation $invocationMatcher)

Parameters

PHPUnit_Framework_MockObject_Matcher_Invocation $invocationMatcher

string toString()

Return Value

string

mixed invoked(PHPUnit_Framework_MockObject_Invocation $invocation)

Parameters

PHPUnit_Framework_MockObject_Invocation $invocation Object containing information on a mocked or stubbed method which was invoked

Return Value

mixed

bool matches(PHPUnit_Framework_MockObject_Invocation $invocation)

Parameters

PHPUnit_Framework_MockObject_Invocation $invocation Object containing information on a mocked or stubbed method which was invoked

Return Value

bool

verify()

Exceptions

PHPUnit_Framework_MockObject_RuntimeException
ExpectationFailedException

hasMatchers()