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

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

public it_discovers_api_using_phpdoc_from_implemented_interfaces ( Prophecy\Doubler\Generator\Node\ClassNode $node )
$node Prophecy\Doubler\Generator\Node\ClassNode
    function it_discovers_api_using_phpdoc_from_implemented_interfaces(ClassNode $node)
    {
        $node->getParentClass()->willReturn('spec\\Prophecy\\Doubler\\ClassPatch\\MagicalApiImplemented');
        $node->getInterfaces()->willReturn(array());
        $node->addMethod(new MethodNode('implementedMethod'))->shouldBeCalled();
        $this->apply($node);
    }