3 * This file is part of the PHPUnit_MockObject package.
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
12 * Builder interface for parameter matchers.
14 * @since Interface available since Release 1.0.0
16 interface PHPUnit_Framework_MockObject_Builder_ParametersMatch extends PHPUnit_Framework_MockObject_Builder_Match
19 * Sets the parameters to match for, each parameter to this funtion will
20 * be part of match. To perform specific matches or constraints create a
21 * new PHPUnit_Framework_Constraint and use it for the parameter.
22 * If the parameter value is not a constraint it will use the
23 * PHPUnit_Framework_Constraint_IsEqual for the value.
27 * // match first parameter with value 2
29 * // match first parameter with value 'smock' and second identical to 42
30 * $b->with('smock', new PHPUnit_Framework_Constraint_IsEqual(42));
33 * @return PHPUnit_Framework_MockObject_Builder_ParametersMatch
35 public function with();
38 * Sets a matcher which allows any kind of parameters.
42 * // match any number of parameters
43 * $b->withAnyParamers();
46 * @return PHPUnit_Framework_MockObject_Matcher_AnyParameters
48 public function withAnyParameters();