spec\Prophecy\Doubler\ClassPatch\MagicCallPatchSpec::it_ignores_existing_methods PHP Метод

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

public it_ignores_existing_methods ( Prophecy\Doubler\Generator\Node\ClassNode $node )
$node Prophecy\Doubler\Generator\Node\ClassNode
    function it_ignores_existing_methods(ClassNode $node)
    {
        $node->getParentClass()->willReturn('spec\\Prophecy\\Doubler\\ClassPatch\\MagicalApiExtended');
        $node->getInterfaces()->willReturn(array());
        $node->addMethod(new MethodNode('undefinedMethod'))->shouldBeCalled();
        $node->addMethod(new MethodNode('definedMethod'))->shouldNotBeCalled();
        $this->apply($node);
    }