PHPUnit 3.5.14 由 Sebastian Bergmann 编写。无法识别的选项--log-xml

发布于 2024-12-27 07:09:17 字数 149 浏览 2 评论 0原文

我正在尝试使用 Netbeans 进行单元测试。但它给了我这个错误。谁能告诉我其中有什么问题吗?

PHPUnit 3.5.14 by Sebastian Bergmann. unrecognized option --log-xml

i am trying to use netbeans for unit testing. But it is giving me this error. anyone can tell me what is wrong in it?

PHPUnit 3.5.14 by Sebastian Bergmann. unrecognized option --log-xml

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

-黛色若梦 2025-01-03 07:09:17

来自 PHPUnit 3.4.x => 3.5 变更日志(底部):

--log-xml 开关已删除,请改用 --log-junit。

当前版本的 Netbeans (7.0.x) 可与旧版 PHPUnit 3.5.* 和新版本 3.6.x 配合使用,因此可能会出现此问题来自您配置了一些自定义开关或使用旧的 netbeans 版本。

升级 netbeans 和 phpunit 应该可以解决这个问题

From the PHPUnit 3.4.x => 3.5 change log (at the bottom):

The --log-xml switch has been removed, please use --log-junit instead.

Current Versions of Netbeans (7.0.x) work with the old PHPUnit 3.5.* and the new versions 3.6.x so the issue might come from you having configured some custom switches or using and old netbeans version.

Upgrading netbeans and phpunit should solve that

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文