public function PHPUnit_Framework_MockObject_Builder_InvocationMocker::willReturn in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Builder/InvocationMocker.php \PHPUnit_Framework_MockObject_Builder_InvocationMocker::willReturn()
Parameters
mixed $value:
Return value
PHPUnit_Framework_MockObject_Builder_InvocationMocker
File
- vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Builder/ InvocationMocker.php, line 81
Class
- PHPUnit_Framework_MockObject_Builder_InvocationMocker
- Builder for mocked or stubbed invocations.
Code
public function willReturn($value) {
$stub = new PHPUnit_Framework_MockObject_Stub_Return($value);
return $this
->will($stub);
}