Skip to content

Fix warnings over unknown mock classes #43

@mnapoli

Description

@mnapoli

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions