You are here

public static function PHPUnit_Framework_TestCase::atMost in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/TestCase.php \PHPUnit_Framework_TestCase::atMost()

Returns a matcher that matches when the method is executed at most N times.

@since Method available since Release 4.2.0

Parameters

int $allowedInvocations:

Return value

PHPUnit_Framework_MockObject_Matcher_InvokedAtMostCount

File

vendor/phpunit/phpunit/src/Framework/TestCase.php, line 1601

Class

PHPUnit_Framework_TestCase
A TestCase defines the fixture to run multiple tests.

Code

public static function atMost($allowedInvocations) {
  return new PHPUnit_Framework_MockObject_Matcher_InvokedAtMostCount($allowedInvocations);
}