You are here

public function PHPUnit_Framework_MockObject_Matcher_InvokedRecorder::getInvocationCount 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::getInvocationCount()

Return value

int

5 calls to PHPUnit_Framework_MockObject_Matcher_InvokedRecorder::getInvocationCount()
PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastCount::verify in vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtLeastCount.php
Verifies that the current expectation is valid. If everything is OK the code should just return, if not it must throw an exception.
PHPUnit_Framework_MockObject_Matcher_InvokedAtLeastOnce::verify in vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtLeastOnce.php
Verifies that the current expectation is valid. If everything is OK the code should just return, if not it must throw an exception.
PHPUnit_Framework_MockObject_Matcher_InvokedAtMostCount::verify in vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedAtMostCount.php
Verifies that the current expectation is valid. If everything is OK the code should just return, if not it must throw an exception.
PHPUnit_Framework_MockObject_Matcher_InvokedCount::invoked in vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedCount.php
PHPUnit_Framework_MockObject_Matcher_InvokedCount::verify in vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/InvokedCount.php
Verifies that the current expectation is valid. If everything is OK the code should just return, if not it must throw an exception.

File

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

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 getInvocationCount() {
  return count($this->invocations);
}