ObjectProphecy::willImplement() support
dbalabka opened this issue · 1 comments
dbalabka commented
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
icanhazstring commented
Also every other method provided by ObjectProphecy
will cause the plugin to break down.
willExtend
, willImplement
and willBeConstructedWith
See linked issue kalessil/phpinspectionsea#1609