spec\Prophecy\Doubler\LazyDoubleSpec::its_setParentClass_throws_exception_if_prophecy_is_already_created PHP Method

its_setParentClass_throws_exception_if_prophecy_is_already_created() public method

public its_setParentClass_throws_exception_if_prophecy_is_already_created ( $doubler, Prophecy\Prophecy\ProphecySubjectInterface $double )
$double Prophecy\Prophecy\ProphecySubjectInterface
    function its_setParentClass_throws_exception_if_prophecy_is_already_created($doubler, ProphecySubjectInterface $double)
    {
        $doubler->double(null, array())->willReturn($double);
        $this->getInstance();
        $this->shouldThrow('Prophecy\\Exception\\Doubler\\DoubleException')->duringSetParentClass('stdClass');
    }