You are here

public function PHPUnit_Framework_MockObject_Builder_InvocationMocker::with in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/InvocationMocker.php \PHPUnit_Framework_MockObject_Builder_InvocationMocker::with()

Parameters

mixed $argument, ...:

Return value

PHPUnit_Framework_MockObject_Builder_InvocationMocker

Overrides PHPUnit_Framework_MockObject_Builder_ParametersMatch::with

File

vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/InvocationMocker.php, line 199

Class

PHPUnit_Framework_MockObject_Builder_InvocationMocker
Builder for mocked or stubbed invocations.

Code

public function with() {
  $args = func_get_args();
  $this
    ->canDefineParameters();
  $this->matcher->parametersMatcher = new PHPUnit_Framework_MockObject_Matcher_Parameters($args);
  return $this;
}