You are here

public function PHPUnit_Framework_MockObject_Builder_MethodNameMatch::method 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::method()

Adds a new method name match and returns the parameter match object for further matching possibilities.

Parameters

PHPUnit_Framework_Constraint $name: Constraint for matching method, if a string is passed it will use the PHPUnit_Framework_Constraint_IsEqual.

Return value

PHPUnit_Framework_MockObject_Builder_ParametersMatch

1 method overrides PHPUnit_Framework_MockObject_Builder_MethodNameMatch::method()
PHPUnit_Framework_MockObject_Builder_InvocationMocker::method in vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/InvocationMocker.php

File

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

Class

PHPUnit_Framework_MockObject_Builder_MethodNameMatch
Builder interface for matcher of method names.

Code

public function method($name);