You are here

class PHPUnit_Framework_MockObject_Matcher_AnyParameters in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Matcher/AnyParameters.php \PHPUnit_Framework_MockObject_Matcher_AnyParameters

Invocation matcher which allows any parameters to a method.

@since Class available since Release 1.0.0

Hierarchy

Expanded class hierarchy of PHPUnit_Framework_MockObject_Matcher_AnyParameters

File

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

View source
class PHPUnit_Framework_MockObject_Matcher_AnyParameters extends PHPUnit_Framework_MockObject_Matcher_StatelessInvocation {

  /**
   * @return string
   */
  public function toString() {
    return 'with any parameters';
  }

  /**
   * @param  PHPUnit_Framework_MockObject_Invocation $invocation
   * @return bool
   */
  public function matches(PHPUnit_Framework_MockObject_Invocation $invocation) {
    return true;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PHPUnit_Framework_MockObject_Matcher_AnyParameters::matches public function Overrides PHPUnit_Framework_MockObject_Matcher_Invocation::matches
PHPUnit_Framework_MockObject_Matcher_AnyParameters::toString public function Overrides PHPUnit_Framework_SelfDescribing::toString
PHPUnit_Framework_MockObject_Matcher_StatelessInvocation::invoked public function Registers the invocation $invocation in the object as being invoked. This will only occur after matches() returns true which means the current invocation is the correct one. Overrides PHPUnit_Framework_MockObject_Matcher_Invocation::invoked
PHPUnit_Framework_MockObject_Matcher_StatelessInvocation::verify public function Checks if the invocation $invocation matches the current rules. If it does the matcher will get the invoked() method called which should check if an expectation is met. Overrides PHPUnit_Framework_MockObject_Verifiable::verify 2