function MagicCallPatchSpec::it_ignores_existing_methods in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpspec/prophecy/spec/Prophecy/Doubler/ClassPatch/MagicCallPatchSpec.php \spec\Prophecy\Doubler\ClassPatch\MagicCallPatchSpec::it_ignores_existing_methods()
Parameters
\Prophecy\Doubler\Generator\Node\ClassNode $node:
File
- vendor/
phpspec/ prophecy/ spec/ Prophecy/ Doubler/ ClassPatch/ MagicCallPatchSpec.php, line 39
Class
Namespace
spec\Prophecy\Doubler\ClassPatchCode
function it_ignores_existing_methods($node) {
$node
->getParentClass()
->willReturn('spec\\Prophecy\\Doubler\\ClassPatch\\MagicalApiExtended');
$node
->addMethod(new MethodNode('undefinedMethod'))
->shouldBeCalled();
$node
->addMethod(new MethodNode('definedMethod'))
->shouldNotBeCalled();
$this
->apply($node);
}