如何在 PHPUnit 9.5.20 中隐藏“#StandWithUkraine”?

Fra*_*ino 16 php phpunit

我最近升级到 PHPUnit 9.5.20,并注意到#StandWithUkraine每次测试运行都会打印。例如。

Testing started at 10:01 am ...
Running in local mode
PHPUnit 9.5.20 #StandWithUkraine


Time: 00:01.141, Memory: 24.00 MB

OK (1 test, 4 assertions)
Run Code Online (Sandbox Code Playgroud)

小智 9

我想您必须编辑包的实际源代码,这似乎不推荐。

但横幅位于phpunit / src / TextUI / TestRunner.php在线322 - 331

我想删除它会成功,但我还没有尝试过,也不推荐。其他一些文件中也提到了该横幅。我已经追踪到包作者所做的提交,以便您可以看到提到横幅的位置。 由作者提交