spec\Prophecy\Doubler\LazyDoubleSpec::it_returns_same_double_instance_if_called_2_times PHP Метод

it_returns_same_double_instance_if_called_2_times() публичный Метод

public it_returns_same_double_instance_if_called_2_times ( $doubler, Prophecy\Prophecy\ProphecySubjectInterface $double1, Prophecy\Prophecy\ProphecySubjectInterface $double2 )
$double1 Prophecy\Prophecy\ProphecySubjectInterface
$double2 Prophecy\Prophecy\ProphecySubjectInterface
    function it_returns_same_double_instance_if_called_2_times($doubler, ProphecySubjectInterface $double1, ProphecySubjectInterface $double2)
    {
        $doubler->double(null, array())->willReturn($double1);
        $doubler->double(null, array())->willReturn($double2);
        $this->getInstance()->shouldReturn($double2);
        $this->getInstance()->shouldReturn($double2);
    }