PHPUnit_Framework_MockObject_Matcher_ConsecutiveParameters
class PHPUnit_Framework_MockObject_Matcher_ConsecutiveParameters extends PHPUnit_Framework_MockObject_Matcher_StatelessInvocation (View source)
Invocation matcher which looks for sets of specific parameters in the invocations.
Checks the parameters of the incoming invocations, the parameter list is checked against the defined constraints in $parameters. If the constraint is met it will return true in matches().
It takes a list of match groups and and increases a call index after each invocation. So the first invocation uses the first group of constraints, the second the next and so on.
Methods
Registers the invocation $invocation in the object as being invoked.
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.
No description
No description
Details
mixed
invoked(PHPUnit_Framework_MockObject_Invocation $invocation)
Registers the invocation $invocation in the object as being invoked.
This will only occur after matches() returns true which means the current invocation is the correct one.
The matcher can store information from the invocation which can later be checked in verify(), or it can check the values directly and throw and exception if an expectation is not met.
If the matcher is a stub it will also have a return value.
at line 78
verify()
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.