spec\Prophecy\ProphetSpec::it_constructs_new_prophecy_with_parent_class_if_specified PHP Méthode

it_constructs_new_prophecy_with_parent_class_if_specified() public méthode

public it_constructs_new_prophecy_with_parent_class_if_specified ( $doubler, Prophecy\Prophecy\ProphecySubjectInterface $newDouble )
$newDouble Prophecy\Prophecy\ProphecySubjectInterface
    function it_constructs_new_prophecy_with_parent_class_if_specified($doubler, ProphecySubjectInterface $newDouble)
    {
        $doubler->double(Argument::any(), array())->willReturn($newDouble);
        $this->prophesize('Prophecy\\Prophet')->reveal()->shouldReturn($newDouble);
    }