Documentation

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
since

Class available since Release 1.0.0

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

Methods

hasMatchers()

public hasMatchers() : mixed
Tags
since

Method available since Release 1.2.4

Return values
mixed

toString()

public toString() : string
Return values
string

Search results