Haehnchen / idea-php-phpunit-plugin

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

Add support for phpspec/prophecy-phpunit #46

Closed acelaya closed 4 years ago

acelaya commented 4 years ago

PhpUnit 9.1 has deprecated the prophesized method from TestCase class, and recommends installing the phpspec/prophecy-phpunit package, which includes a trait which brings back this method.

However, when using prophesize from the trait, idea-php-phpunit-plugin no longer detects the mocked type, and you loose the intellisense and method autocompletion.

Haehnchen commented 4 years ago

added support for this new trait based on phpunit 9.1