You are here

public function PHPUnit_Framework_MockObject_Matcher_ConsecutiveParameters::verify 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::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.

Parameters

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

Return value

bool

Overrides PHPUnit_Framework_MockObject_Matcher_StatelessInvocation::verify

File

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

Class

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

Code

public function verify() {
  foreach ($this->_invocations as $callIndex => $invocation) {
    $this
      ->verifyInvocation($invocation, $callIndex);
  }
}