public function PHPUnit_Framework_MockObject_Builder_InvocationMocker::will 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::will()
Parameters
PHPUnit_Framework_MockObject_Stub $stub:
Return value
PHPUnit_Framework_MockObject_Builder_InvocationMocker
Overrides PHPUnit_Framework_MockObject_Builder_Stub::will
7 calls to PHPUnit_Framework_MockObject_Builder_InvocationMocker::will()
- PHPUnit_Framework_MockObject_Builder_InvocationMocker::willReturn in vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Builder/ InvocationMocker.php - PHPUnit_Framework_MockObject_Builder_InvocationMocker::willReturnArgument in vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Builder/ InvocationMocker.php - PHPUnit_Framework_MockObject_Builder_InvocationMocker::willReturnCallback in vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Builder/ InvocationMocker.php - PHPUnit_Framework_MockObject_Builder_InvocationMocker::willReturnMap in vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Builder/ InvocationMocker.php - PHPUnit_Framework_MockObject_Builder_InvocationMocker::willReturnOnConsecutiveCalls in vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Builder/ InvocationMocker.php
File
- vendor/
phpunit/ phpunit-mock-objects/ src/ Framework/ MockObject/ Builder/ InvocationMocker.php, line 70
Class
- PHPUnit_Framework_MockObject_Builder_InvocationMocker
- Builder for mocked or stubbed invocations.
Code
public function will(PHPUnit_Framework_MockObject_Stub $stub) {
$this->matcher->stub = $stub;
return $this;
}