spec\Prophecy\Doubler\Generator\Node\MethodNodeSpec::its_useParentCode_causes_method_to_call_parent PHP Method

its_useParentCode_causes_method_to_call_parent() public method

public its_useParentCode_causes_method_to_call_parent ( Prophecy\Doubler\Generator\Node\ArgumentNode $argument1, Prophecy\Doubler\Generator\Node\ArgumentNode $argument2 )
$argument1 Prophecy\Doubler\Generator\Node\ArgumentNode
$argument2 Prophecy\Doubler\Generator\Node\ArgumentNode
    function its_useParentCode_causes_method_to_call_parent(ArgumentNode $argument1, ArgumentNode $argument2)
    {
        $argument1->getName()->willReturn('objectName');
        $argument2->getName()->willReturn('default');
        $argument1->isVariadic()->willReturn(false);
        $argument2->isVariadic()->willReturn(true);
        $this->addArgument($argument1);
        $this->addArgument($argument2);
        $this->useParentCode();
        $this->getCode()->shouldReturn('return parent::getTitle($objectName, ...$default);');
    }