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.
PhpUnit 9.1 has deprecated the
prophesized
method fromTestCase
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.