You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ phpunit Test
PHPUnit 7.5.8 by Sebastian Bergmann and contributors.
W 1 / 1 (100%)
Time: 52 ms, Memory: 4.00 MB
There was 1 warning:
1) Test::testOne
Class "Foo" is declared "final" and cannot be mocked.
WARNINGS!
Tests: 1, Assertions: 0, Warnings: 1.
The text was updated successfully, but these errors were encountered:
Invocation::generateReturnValue() is wrongly called to generate a default return value for : Foo. This does not work as Foo is final. If Foo were not final the call to Invocation::generateReturnValue() works but would still be superfluous as we are proxying and use the return value of the original method.
The text was updated successfully, but these errors were encountered: