You are here

public function PHPUnit_Framework_MockObject_Matcher_InvokedRecorder::invoked in Zircon Profile 8

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

Parameters

PHPUnit_Framework_MockObject_Invocation $invocation:

Overrides PHPUnit_Framework_MockObject_Matcher_Invocation::invoked

1 call to PHPUnit_Framework_MockObject_Matcher_InvokedRecorder::invoked()
PHPUnit_Framework_MockObject_Matcher_InvokedCount::invoked in vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedCount.php
1 method overrides PHPUnit_Framework_MockObject_Matcher_InvokedRecorder::invoked()
PHPUnit_Framework_MockObject_Matcher_InvokedCount::invoked in vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedCount.php

File

vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedRecorder.php, line 54

Class

PHPUnit_Framework_MockObject_Matcher_InvokedRecorder
Records invocations and provides convenience methods for checking them later on. This abstract class can be implemented by matchers which needs to check the number of times an invocation has occured.

Code

public function invoked(PHPUnit_Framework_MockObject_Invocation $invocation) {
  $this->invocations[] = $invocation;
}