I'm new on Symfony and PHPUnit.
I would like to run some tests, there are a lot of deprecation notices. But it does not matter because I'll stay on Symfony 2.8 for now. Do you know if it's possible to remove them?
I try to find out by myself, but it's not working, have you got some ideas for me folks ?
How to remove the deprecation warnings in Symfony 2.7?
Disable deprecated warning in Symfony 2(.7)
EDIT :
Reference to the answer of @LBA
My screenshot is not really about the error of the AsseticBundle, but about the "Remaining deprecation notices (220)". I would like to know if there is a flag somewhere to display, or not, these warnings. I would like to just have the result of my test suit. Is that possible?
Finally found the solution !
Just add
<php> <env name="SYMFONY_DEPRECATIONS_HELPER" value="weak" /> </php>
to your phpunit.xml
(or any other file that you use to configure phpunit)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With