Open dbalabka opened 5 years ago
It seems that the method willImplement is not supported
willImplement
$mock = $this->prophesize(SomeClass::class) ->willImplement(FirstInterface::class) ->willImplement(SecondInterface::class);
Above code will return $mock variable which implements: SomeClass::class, FirstInterface::class, SecondInterface::class
$mock
SomeClass::class
FirstInterface::class
SecondInterface::class
Also every other method provided by ObjectProphecy will cause the plugin to break down. willExtend, willImplement and willBeConstructedWith
ObjectProphecy
willExtend
willBeConstructedWith
See linked issue kalessil/phpinspectionsea#1609
It seems that the method
willImplement
is not supportedAbove code will return
$mock
variable which implements:SomeClass::class
,FirstInterface::class
,SecondInterface::class