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

Fix warnings over unknown mock classes #43

Open
mnapoli opened this issue Jan 30, 2016 · 3 comments
Open

Fix warnings over unknown mock classes #43

mnapoli opened this issue Jan 30, 2016 · 3 comments

Comments

@mnapoli
Copy link

mnapoli commented Jan 30, 2016

PhpStorm will create warnings for classes that do not exist, for example:

$mock = new \mock\DateTime();

It would be awesome to be able to:

  • suppress the warning, i.e. make PhpStorm believe the class exists (even better, when Ctrl+Click go to the original class)
  • offer auto-completion for the $mock object over mock methods + the original class methods (this is for example what this plugin does for PHPUnit: https://github.com/Haehnchen/idea-php-toolbox#screenshots)
@syrm
Copy link

syrm commented Feb 2, 2016

+1
That would be awesome

@agallou agallou self-assigned this Feb 2, 2016
@agallou
Copy link
Member

agallou commented Feb 18, 2016

This is not currently possible with PhpStorm openapi.

There is an issue on Jetbrain's issue tracker about adding a functionality that will allow us to get rid of the warnings on atoum's mocks : https://youtrack.jetbrains.com/issue/WI-27367#comment=27-1304926

@agallou
Copy link
Member

agallou commented Nov 13, 2017

the issue on Youteack has been updated : https://youtrack.jetbrains.com/issue/WI-27367.
The next EAP will provide an extension point that could help us resolve this issue.

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

No branches or pull requests

3 participants