The method method does not actually exist (magic method), but is defined in PHPUnit_Framework_MockObject_MockObject via phpdoc. Though this is not a problem here. PhpStorm autocompletes $mock->|. The only missing glue here is support for autocomplete and reference from your plugin inside the 'method_name' parameter, which I added as FilterConfigItem.
According to the PHPUnit manual, instead of this call ...
... the following can be used:
(see https://phpunit.de/manual/5.1/en/test-doubles.html#test-doubles.stubs.examples.StubTest.php)
The
method
method does not actually exist (magic method), but is defined inPHPUnit_Framework_MockObject_MockObject
via phpdoc. Though this is not a problem here. PhpStorm autocompletes$mock->|
. The only missing glue here is support for autocomplete and reference from your plugin inside the 'method_name' parameter, which I added asFilterConfigItem
.