When testing deprecations with PHPUnit greater than 9.5.10 you might encounter this error:
Failed asserting that exception of type "PHPUnit\Framework\Error\Deprecated" is thrown.
The code in the test is as follows:
and the code that should be tested is like this:
Continue reading “Testing Deprecations with PHPUnit”