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

By default bundled with:

PhpStorm 2024.1, Qodana for PHP 2024.1,

Can be installed with plugin:

PHP, 241.SNAPSHOT

Last modified: 12 March 2024