You are here

function ProphetSpec::let in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpspec/prophecy/spec/Prophecy/ProphetSpec.php \spec\Prophecy\ProphetSpec::let()

Parameters

\Prophecy\Doubler\Doubler $doubler:

\Prophecy\Prophecy\ProphecySubjectInterface $double:

File

vendor/phpspec/prophecy/spec/Prophecy/ProphetSpec.php, line 14

Class

ProphetSpec

Namespace

spec\Prophecy

Code

function let($doubler, $double) {
  $doubler
    ->double(null, array())
    ->willReturn($double);
  $this
    ->beConstructedWith($doubler);
}