Mockery\Exception: The class \Intervention\Image\ImageManager is marked final and its methods cannot be replaced. Classes marked final can be passed in to \Mockery::mock() as instantiated objects to create a partial mock, but only if the mock is not subject to type hinting checks.
Describe the bug Impossible to test with PHPUnit and Laravel.
Code Example
Throw the error:
And using Mockery:
Throw the error:
Expected behavior Perhaps we should not declare classes as final?
Environment (please complete the following information):