Update v1.0.6.5

This commit is contained in:
sujitprasad
2016-03-02 12:25:21 +05:30
parent 7011553462
commit c56ff86194
218 changed files with 17161 additions and 2358 deletions

View File

@@ -46,6 +46,19 @@ class MagicCallPatchSpec extends ObjectBehavior
$this->apply($node);
}
/**
* @param \Prophecy\Doubler\Generator\Node\ClassNode $node
*/
function it_discovers_api_using_phpdoc_from_interface($node)
{
$node->getParentClass()->willReturn('spec\Prophecy\Doubler\ClassPatch\MagicalApiImplemented');
$node->addMethod(new MethodNode('implementedMethod'))->shouldBeCalled();
$this->apply($node);
}
function it_has_50_priority()
{
$this->getPriority()->shouldReturn(50);
@@ -73,4 +86,19 @@ class MagicalApi
class MagicalApiExtended extends MagicalApi
{
}
}
/**
*/
class MagicalApiImplemented implements MagicalApiInterface
{
}
/**
* @method void implementedMethod()
*/
interface MagicalApiInterface
{
}