phpunit 9不打印错误堆栈跟踪
我最近将我的单元测试环境从phpunitv8.5.13更新为v9.5.1。相同的配置文件,相同的php版本,除了命令行中的php unit phar文件外,其他都是相同的 所有工作正常,但当出现意外异常时,将不再打印堆栈跟踪(直到v8): phpunit 8phpunit 9不打印错误堆栈跟踪,phpunit,Phpunit,我最近将我的单元测试环境从phpunitv8.5.13更新为v9.5.1。相同的配置文件,相同的php版本,除了命令行中的php unit phar文件外,其他都是相同的 所有工作正常,但当出现意外异常时,将不再打印堆栈跟踪(直到v8): phpunit 8 PHPUnit 8.5.13 by Sebastian Bergmann and contributors. E Time: 1.36 seconds, Memory: 36.00 MB There was 1 error: 1)
PHPUnit 8.5.13 by Sebastian Bergmann and contributors.
E
Time: 1.36 seconds, Memory: 36.00 MB
There was 1 error:
1) moduleTmEmployeeTest::testAdd with data set "default" (array(), array())
mobEx: this is my exception
[path]\unittests\phpunit\tm\moduleTmEmployeeTest.php:54
ERRORS!
Tests: 1, Assertions: 0, Errors: 1.
我查看了文档和迁移指南,但不知道该设置哪个新标志,也不知道我还能做什么。有人知道吗?正如@sebastian在评论中提到的,这是当前版本v9.5.2中修复的一个bug
PHPUnit 8.5.13 by Sebastian Bergmann and contributors.
E
Time: 1.36 seconds, Memory: 36.00 MB
There was 1 error:
1) moduleTmEmployeeTest::testAdd with data set "default" (array(), array())
mobEx: this is my exception
[path]\unittests\phpunit\tm\moduleTmEmployeeTest.php:54
ERRORS!
Tests: 1, Assertions: 0, Errors: 1.