PHPUnit_Framework_MockObject_Matcher
in package
implements
PHPUnit_Framework_MockObject_Matcher_Invocation
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.
Tags
Interfaces, Classes and Traits
- PHPUnit_Framework_MockObject_Matcher_Invocation
- Interface for classes which matches an invocation based on its method name, argument, order or call count.
Table of Contents
- $afterMatchBuilderId : mixed
- $afterMatchBuilderIsInvoked : bool
- $invocationMatcher : PHPUnit_Framework_MockObject_Matcher_Invocation
- $methodNameMatcher : PHPUnit_Framework_MockObject_Matcher_MethodName
- $parametersMatcher : PHPUnit_Framework_MockObject_Matcher_Parameters
- $stub : PHPUnit_Framework_MockObject_Stub
- __construct() : mixed
- hasMatchers() : mixed
- invoked() : mixed
- Registers the invocation $invocation in the object as being invoked.
- matches() : bool
- Checks if the invocation $invocation matches the current rules. If it does the matcher will get the invoked() method called which should check if an expectation is met.
- toString() : string
- verify() : mixed
Properties
$afterMatchBuilderId
public
mixed
$afterMatchBuilderId
=
ull
$afterMatchBuilderIsInvoked
public
bool
$afterMatchBuilderIsInvoked
= alse
$invocationMatcher
public
PHPUnit_Framework_MockObject_Matcher_Invocation
$invocationMatcher
$methodNameMatcher
public
PHPUnit_Framework_MockObject_Matcher_MethodName
$methodNameMatcher
=
ull
$parametersMatcher
public
PHPUnit_Framework_MockObject_Matcher_Parameters
$parametersMatcher
=
ull
$stub
public
PHPUnit_Framework_MockObject_Stub
$stub
=
ull
Methods
__construct()
public
__construct(PHPUnit_Framework_MockObject_Matcher_Invocation $invocationMatcher) : mixed
Parameters
- $invocationMatcher : PHPUnit_Framework_MockObject_Matcher_Invocation
Return values
mixed —hasMatchers()
public
hasMatchers() : mixed
Tags
Return values
mixed —invoked()
Registers the invocation $invocation in the object as being invoked.
public
invoked(PHPUnit_Framework_MockObject_Invocation $invocation) : mixed
Parameters
- $invocation : PHPUnit_Framework_MockObject_Invocation
Return values
mixed —matches()
Checks if the invocation $invocation matches the current rules. If it does the matcher will get the invoked() method called which should check if an expectation is met.
public
matches(PHPUnit_Framework_MockObject_Invocation $invocation) : bool
Parameters
- $invocation : PHPUnit_Framework_MockObject_Invocation
Return values
bool —toString()
public
toString() : string
Return values
string —verify()
public
verify() : mixed