Inspectopedia Help

Invalid Mockery mocking target

Reports the methods and classes that are incorrectly mocked in Mockery tests.

The following entities are reported:

  • private methods

  • protected methods without appropriate \Mockery\Mock::shouldAllowMockingProtectedMethods call

Inspection Details

Available in:

PhpStorm 2023.3, Qodana for PHP 2023.3

Plugin:

PHP, 233.SNAPSHOT

Last modified: 13 July 2023