Haehnchen / idea-php-phpunit-plugin

IntelliJ IDEA / PhpStorm PHPUnit Enhancement Plugin
MIT License
55 stars 11 forks source link

ObjectProphecy::willImplement() support #43

Open dbalabka opened 5 years ago

dbalabka commented 5 years ago

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 3 years ago

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

See linked issue kalessil/phpinspectionsea#1609