Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No autocompletion of assert* methods with PHPStorm 2016.2 #2243

Closed
AllenJB opened this issue Jul 13, 2016 · 6 comments
Closed

No autocompletion of assert* methods with PHPStorm 2016.2 #2243

AllenJB opened this issue Jul 13, 2016 · 6 comments

Comments

@AllenJB
Copy link

AllenJB commented Jul 13, 2016

I realize this is a tool-specific issue and I'm aware of the reasons as per #1914, but thought you may wish to be aware of this issue anyway due to the specific nature of PHPUnit.

As of PHPStorm 2016.2, static methods are filtered when auto-completing from a non-static context. This obviously breaks the recommended / documented way of writing tests for PHPStorm users.

Related issues:
#1914
https://youtrack.jetbrains.com/issue/WI-32493

@sebastianbergmann
Copy link
Owner

Sorry, but this is a PhpStorm issue.

@eclipxe13
Copy link
Contributor

OT: Yes, it is a PhpStorm issue, just call autocomplete (Control + Space) twice and it will show static methods also.

@TomasVotruba
Copy link

@eclipxe13 Thanks a lot for a solution!

@thinkingmedia
Copy link

@eclipxe13 I wish this was added to the PhpUnit docs!

@kokspflanze
Copy link
Contributor

@thinkingmedia

it should be already fixed, see https://youtrack.jetbrains.com/issueMobile/WI-32530

@ejazrasool
Copy link

@eclipxe13
Thanks a lot for the solution.

As a note, one can also write

self::assertEquals(... or static::assertEquals(...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants