update v 1.0.7.5

This commit is contained in:
Sujit Prasad
2016-06-13 20:41:55 +05:30
parent aa9786d829
commit 283d97e3ea
5078 changed files with 339851 additions and 175995 deletions

View File

@@ -46,6 +46,18 @@ class MagicCallPatchSpec extends ObjectBehavior
$this->apply($node);
}
/**
* @param \Prophecy\Doubler\Generator\Node\ClassNode $node
*/
function it_ignores_empty_methods_from_phpdoc($node)
{
$node->getParentClass()->willReturn('spec\Prophecy\Doubler\ClassPatch\MagicalApiInvalidMethodDefinition');
$node->addMethod(new MethodNode(''))->shouldNotBeCalled();
$this->apply($node);
}
/**
* @param \Prophecy\Doubler\Generator\Node\ClassNode $node
*/
@@ -79,6 +91,15 @@ class MagicalApi
}
}
/**
* @method void invalidMethodDefinition
* @method void
* @method
*/
class MagicalApiInvalidMethodDefinition
{
}
/**
* @method void undefinedMethod()
* @method void definedMethod()