You are here

public function PHPUnit_Framework_MockObject_Matcher::hasMatchers in Zircon Profile 8

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

@since Method available since Release 1.2.4

File

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

Class

PHPUnit_Framework_MockObject_Matcher
Main matcher which defines a full expectation using method, parameter and invocation matchers. This matcher encapsulates all the other matchers and allows the builder to set the specific matchers when the appropriate methods are called…

Code

public function hasMatchers() {
  if ($this->invocationMatcher !== null && !$this->invocationMatcher instanceof PHPUnit_Framework_MockObject_Matcher_AnyInvokedCount) {
    return true;
  }
  return false;
}