idea-php-phpunit-plugin
idea-php-phpunit-plugin copied to clipboard
ObjectProphecy::willImplement() support
It seems that the method willImplement
is not supported
$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
Also every other method provided by ObjectProphecy
will cause the plugin to break down.
willExtend
, willImplement
and willBeConstructedWith
See linked issue kalessil/phpinspectionsea#1609