public function MethodProphecy::willReturn in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/src/Prophecy/Prophecy/MethodProphecy.php \Prophecy\Prophecy\MethodProphecy::willReturn()
Sets return promise to the prophecy.
Return value
$this
See also
Prophecy\Promise\ReturnPromise
1 call to MethodProphecy::willReturn()
- MethodProphecy::shouldHave in vendor/
phpspec/ prophecy/ src/ Prophecy/ Prophecy/ MethodProphecy.php - Checks provided prediction immediately.
File
- vendor/
phpspec/ prophecy/ src/ Prophecy/ Prophecy/ MethodProphecy.php, line 163
Class
- MethodProphecy
- Method prophecy.
Namespace
Prophecy\ProphecyCode
public function willReturn() {
return $this
->will(new Promise\ReturnPromise(func_get_args()));
}