Haehnchen / idea-php-phpunit-plugin

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

Autocompletion for methods in dataProvider annotations #21

Closed stof closed 7 years ago

stof commented 7 years ago

It would be great if the plugin could provide autocompletion when writing the @dataProvider annotation on a test.

King2500 commented 7 years ago

Actually PhpStorm already does this for me: image

It's a long list when nothing further is typed, because every global function is also listed. I think that's correct, but not commonly used in this case.

stof commented 7 years ago

Well, global functions are right there, as data providers can either be class methods or callable (you could also do TestBuilder::getFiles btw).

For some reasons, PhpStorm was not properly completing things when I was writing my tests a few hours ago, but it does now. very weird.

I'm closing this issue.

stof commented 7 years ago

@King2500 FYI, I just opened https://youtrack.jetbrains.com/issue/WI-37542 to request a smarter sorting of completion suggestions there