Chris@0:
Chris@0: *
Chris@0: * For the full copyright and license information, please view the LICENSE
Chris@0: * file that was distributed with this source code.
Chris@0: */
Chris@0:
Chris@0: /**
Chris@0: * Builder interface for parameter matchers.
Chris@0: *
Chris@0: * @since Interface available since Release 1.0.0
Chris@0: */
Chris@0: interface PHPUnit_Framework_MockObject_Builder_ParametersMatch extends PHPUnit_Framework_MockObject_Builder_Match
Chris@0: {
Chris@0: /**
Chris@0: * Sets the parameters to match for, each parameter to this funtion will
Chris@0: * be part of match. To perform specific matches or constraints create a
Chris@0: * new PHPUnit_Framework_Constraint and use it for the parameter.
Chris@0: * If the parameter value is not a constraint it will use the
Chris@0: * PHPUnit_Framework_Constraint_IsEqual for the value.
Chris@0: *
Chris@0: * Some examples:
Chris@0: *
Chris@0: * // match first parameter with value 2
Chris@0: * $b->with(2);
Chris@0: * // match first parameter with value 'smock' and second identical to 42
Chris@0: * $b->with('smock', new PHPUnit_Framework_Constraint_IsEqual(42));
Chris@0: *
Chris@0: *
Chris@0: * @return PHPUnit_Framework_MockObject_Builder_ParametersMatch
Chris@0: */
Chris@0: public function with();
Chris@0:
Chris@0: /**
Chris@0: * Sets a matcher which allows any kind of parameters.
Chris@0: *
Chris@0: * Some examples:
Chris@0: *
Chris@0: * // match any number of parameters
Chris@0: * $b->withAnyParamers();
Chris@0: *
Chris@0: *
Chris@0: * @return PHPUnit_Framework_MockObject_Matcher_AnyParameters
Chris@0: */
Chris@0: public function withAnyParameters();
Chris@0: }