删除“剩余的弃用通知"在Symfony 2.8中 [英] Remove "Remaining deprecation notices" in Symfony 2.8
问题描述
我是Symfony和PHPUnit的新手.
I'm new on Symfony and PHPUnit.
我想进行一些测试,其中有很多弃用通知.但这没关系,因为我现在将继续使用Symfony 2.8.您知道是否可以删除它们吗?
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 ?
参考@LBA的答案
我的屏幕截图并不是与AsseticBundle的错误有关,而是与剩余的折旧通知(220)"有关.我想知道这些警告是否在某处显示.我只想得到我的测试服的结果.有可能吗?
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?
推荐答案
终于找到了解决方案!
只需添加
<php>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak" />
</php>
到您的phpunit.xml
(或用于配置phpunit的任何其他文件)
to your phpunit.xml
(or any other file that you use to configure phpunit)
这篇关于删除“剩余的弃用通知"在Symfony 2.8中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!