Closed stof closed 7 years ago
Btw, once this is supported, Prophecy should be handled in the same way (the mock being returned by reveal()
handled nicer in external plugin: https://github.com/Haehnchen/idea-php-phpunit-plugin
@Haehnchen does the external plugin also support Prophecy ?
Yes, obviously ;)
In PHPUnit,
getMockBuilder
does not give you the mock instance, so it is not of the mocked type. The mock is returned bygetMock()
on the builder instead. And the plugin does not support this pattern.