You are here

function ObjectProphecySpec::let in Zircon Profile 8

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

Parameters

\Prophecy\Doubler\LazyDouble $lazyDouble:

\Prophecy\Prophecy\ProphecySubjectInterface $double:

File

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

Class

ObjectProphecySpec

Namespace

spec\Prophecy\Prophecy

Code

function let($lazyDouble, $double) {
  $this
    ->beConstructedWith($lazyDouble);
  $lazyDouble
    ->getInstance()
    ->willReturn($double);
}