function it_discovers_api_using_phpdoc(ClassNode $node)
{
$node->getParentClass()->willReturn('spec\\Prophecy\\Doubler\\ClassPatch\\MagicalApi');
$node->getInterfaces()->willReturn(array());
$node->addMethod(new MethodNode('undefinedMethod'))->shouldBeCalled();
$this->apply($node);
}