Update v1.0.6.5
This commit is contained in:
		| @@ -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 | ||||
| { | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sujitprasad
					sujitprasad