Inspectopedia
 
2024.3

Invalid Mockery mocking target

Error
New
Last modified: 03 December 2024

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