You are here

function MagicCallPatchSpec::it_discovers_api_using_phpdoc in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/spec/Prophecy/Doubler/ClassPatch/MagicCallPatchSpec.php \spec\Prophecy\Doubler\ClassPatch\MagicCallPatchSpec::it_discovers_api_using_phpdoc()

Parameters

\Prophecy\Doubler\Generator\Node\ClassNode $node:

File

vendor/phpspec/prophecy/spec/Prophecy/Doubler/ClassPatch/MagicCallPatchSpec.php, line 27

Class

MagicCallPatchSpec

Namespace

spec\Prophecy\Doubler\ClassPatch

Code

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