You are here

interface PHPUnit_Framework_MockObject_Builder_MethodNameMatch in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/MethodNameMatch.php \PHPUnit_Framework_MockObject_Builder_MethodNameMatch

Builder interface for matcher of method names.

@since Interface available since Release 1.0.0

Hierarchy

Expanded class hierarchy of PHPUnit_Framework_MockObject_Builder_MethodNameMatch

All classes that implement PHPUnit_Framework_MockObject_Builder_MethodNameMatch

File

vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/MethodNameMatch.php, line 16

View source
interface PHPUnit_Framework_MockObject_Builder_MethodNameMatch extends PHPUnit_Framework_MockObject_Builder_ParametersMatch {

  /**
   * Adds a new method name match and returns the parameter match object for
   * further matching possibilities.
   *
   * @param  PHPUnit_Framework_Constraint                         $name
   *                                                                    Constraint for matching method, if a string is passed it will use
   *                                                                    the PHPUnit_Framework_Constraint_IsEqual.
   * @return PHPUnit_Framework_MockObject_Builder_ParametersMatch
   */
  public function method($name);

}

Members

Namesort descending Modifiers Type Description Overrides
PHPUnit_Framework_MockObject_Builder_Identity::id public function Sets the identification of the expectation to $id. 1
PHPUnit_Framework_MockObject_Builder_Match::after public function Defines the expectation which must occur before the current is valid. 1
PHPUnit_Framework_MockObject_Builder_MethodNameMatch::method public function Adds a new method name match and returns the parameter match object for further matching possibilities. 1
PHPUnit_Framework_MockObject_Builder_ParametersMatch::with public function Sets the parameters to match for, each parameter to this funtion will be part of match. To perform specific matches or constraints create a new PHPUnit_Framework_Constraint and use it for the parameter. If the parameter value is not a constraint it… 1
PHPUnit_Framework_MockObject_Builder_ParametersMatch::withAnyParameters public function Sets a matcher which allows any kind of parameters. 1
PHPUnit_Framework_MockObject_Builder_Stub::will public function Stubs the matching method with the stub object $stub. Any invocations of the matched method will now be handled by the stub instead. 1