paraunit icon indicating copy to clipboard operation
paraunit copied to clipboard

Deprecation warnings in >2.0

Open evang522 opened this issue 5 months ago • 1 comments

The class src/Logs/TestHook/Deprecation.php implements PHPUnit's \PHPUnit\Event\Test\DeprecationTriggeredSubscriber.

This means that every time a deprecation is triggered in PHPUnit tests, it is reported by paraunit. (In our case, it also includes deprecations triggered by vendors' code usage / dependencies). But PHPUnit itself doesn't do this kind of reporting by default.

Perhaps I've missed an important setting somewhere. Is it possible to suppress these deprecations? It becomes a bit difficult to see the results of our rather large test suites when there are so many deprecations being reported.

If it's helpful, I created a repository with minimal packages to demonstrate the deprecations with paraunit and the lack thereof in phpunit.

https://github.com/evang522/demo-paraunit-deprecations

Thanks!

evang522 avatar Jan 31 '24 12:01 evang522