spec\Prophecy\Doubler\ClassPatch\SplFileInfoPatchSpec::it_adds_a_method_to_node_if_not_exists PHP Метод

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

public it_adds_a_method_to_node_if_not_exists ( Prophecy\Doubler\Generator\Node\ClassNode $node )
$node Prophecy\Doubler\Generator\Node\ClassNode
    function it_adds_a_method_to_node_if_not_exists(ClassNode $node)
    {
        $node->hasMethod('__construct')->willReturn(false);
        $node->addMethod(Argument::any())->shouldBeCalled();
        $node->getParentClass()->shouldBeCalled();
        $this->apply($node);
    }