Haehnchen / idea-php-phpunit-plugin

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

Autocomplete in PHPUnit method method stopped working #39

Closed digibeuk closed 4 years ago

digibeuk commented 5 years ago

In the past it was possible to have autocompletion in the \PHPUnit\Framework\MockObject\Builder\InvocationMocker::method method, i've tested this with version 3.7 en 3.8, but it does not work anymore.

For instance in this example below would expect getCurrentRequest to get type hinted. Also refactoring > rename command from PHPStorm would rename these occurences in the past which was very handy.

carbon

I saw you have an unreleased commit in master which I suspect could solve the problem

davidkmenta commented 5 years ago

It seems that it works (at least the autocompletion) when you omit the "expects" method call. Tested with PHPUnit 8, phpStorm 2019.1 and PHPUnit Enhancement 3.8.

Sure, it's not handy, but better than nothing 😊

digibeuk commented 5 years ago

It seems that it works (at least the autocompletion) when you omit the "expects" method call. Tested with PHPUnit 8, phpStorm 2019.1 and PHPUnit Enhancement 3.8.

Sure, it's not handy, but better than nothing

Ha :smile:

But I really need the expectations

Haehnchen commented 4 years ago

looks now to be working:

image

digibeuk commented 4 years ago

work again! Thanks very much this is a great time-saver for me!