Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
phpunit 9不打印错误堆栈跟踪_Phpunit - Fatal编程技术网

phpunit 9不打印错误堆栈跟踪

phpunit 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)

我最近将我的单元测试环境从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) 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.