You are here

public function PHPUnit_Framework_MockObject_Builder_InvocationMocker::willReturnOnConsecutiveCalls in Zircon Profile 8.0

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

Parameters

mixed $value, ...:

Return value

PHPUnit_Framework_MockObject_Builder_InvocationMocker

File

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

Class

PHPUnit_Framework_MockObject_Builder_InvocationMocker
Builder for mocked or stubbed invocations.

Code

public function willReturnOnConsecutiveCalls() {
  $args = func_get_args();
  $stub = new PHPUnit_Framework_MockObject_Stub_ConsecutiveCalls($args);
  return $this
    ->will($stub);
}