You are here

function once in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Assert/Functions.php \once()

Returns a matcher that matches when the method is executed exactly once.

@since Method available since Release 3.0.0

Return value

PHPUnit_Framework_MockObject_Matcher_InvokedCount

File

vendor/phpunit/phpunit/src/Framework/Assert/Functions.php, line 2286

Code

function once() {
  return call_user_func_array('PHPUnit_Framework_TestCase::once', func_get_args());
}