public static function PHPUnit_Framework_TestCase::exactly

Returns a matcher that matches when the method it is evaluated for is executed exactly $count times.

@since Method available since Release 3.0.0

Parameters

integer $count:

Return value

PHPUnit_Framework_MockObject_Matcher_InvokedCount

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php, line 1548

Class

PHPUnit_Framework_TestCase
A TestCase defines the fixture to run multiple tests.

Code

public static function exactly($count) {
  return new PHPUnit_Framework_MockObject_Matcher_InvokedCount($count);
}