You are here

public function PHPUnit_Framework_MockObject_Matcher_ConsecutiveParameters::matches in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/ConsecutiveParameters.php \PHPUnit_Framework_MockObject_Matcher_ConsecutiveParameters::matches()

Parameters

PHPUnit_Framework_MockObject_Invocation $invocation:

Return value

bool

Overrides PHPUnit_Framework_MockObject_Matcher_Invocation::matches

File

vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/ConsecutiveParameters.php, line 62

Class

PHPUnit_Framework_MockObject_Matcher_ConsecutiveParameters
Invocation matcher which looks for sets of specific parameters in the invocations.

Code

public function matches(PHPUnit_Framework_MockObject_Invocation $invocation) {
  $this->_invocations[] = $invocation;
  $callIndex = count($this->_invocations) - 1;
  $this
    ->verifyInvocation($invocation, $callIndex);
  return false;
}