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

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

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');
    }