interface PHPUnit_Framework_MockObject_Builder_ParametersMatch in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/ParametersMatch.php \PHPUnit_Framework_MockObject_Builder_ParametersMatch
Builder interface for parameter matchers.
@since Interface available since Release 1.0.0
Hierarchy
Expanded class hierarchy of PHPUnit_Framework_MockObject_Builder_ParametersMatch
All classes that implement PHPUnit_Framework_MockObject_Builder_ParametersMatch
File
- vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Builder/ ParametersMatch.php, line 16
View source
interface PHPUnit_Framework_MockObject_Builder_ParametersMatch extends PHPUnit_Framework_MockObject_Builder_Match {
/**
* 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 will use the
* PHPUnit_Framework_Constraint_IsEqual for the value.
*
* Some examples:
* <code>
* // match first parameter with value 2
* $b->with(2);
* // match first parameter with value 'smock' and second identical to 42
* $b->with('smock', new PHPUnit_Framework_Constraint_IsEqual(42));
* </code>
*
* @return PHPUnit_Framework_MockObject_Builder_ParametersMatch
*/
public function with();
/**
* Sets a matcher which allows any kind of parameters.
*
* Some examples:
* <code>
* // match any number of parameters
* $b->withAnyParamers();
* </code>
*
* @return PHPUnit_Framework_MockObject_Matcher_AnyParameters
*/
public function withAnyParameters();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PHPUnit_Framework_MockObject_Builder_Identity:: |
public | function | Sets the identification of the expectation to $id. | 1 |
PHPUnit_Framework_MockObject_Builder_Match:: |
public | function | Defines the expectation which must occur before the current is valid. | 1 |
PHPUnit_Framework_MockObject_Builder_ParametersMatch:: |
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:: |
public | function | Sets a matcher which allows any kind of parameters. | 1 |
PHPUnit_Framework_MockObject_Builder_Stub:: |
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 |