idea-php-phpunit-plugin icon indicating copy to clipboard operation
idea-php-phpunit-plugin copied to clipboard

ObjectProphecy::willImplement() support

Open dbalabka opened this issue 5 years ago • 1 comments

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

dbalabka avatar Mar 29 '19 16:03 dbalabka

Also every other method provided by ObjectProphecy will cause the plugin to break down. willExtend, willImplement and willBeConstructedWith

See linked issue kalessil/phpinspectionsea#1609

icanhazstring avatar Aug 03 '20 12:08 icanhazstring