【发布时间】:2011-11-28 08:19:04
【问题描述】:
我正在尝试让 PHPUnit 在 Netbeans 中工作。我使用的是 3.4.9 但它拒绝工作,建议升级到最新版本。我现在已经升级到 3.5.15,当我运行它时,我收到以下消息:
unrecognized option --log-xml
我知道这不是一个有效的日志记录选项,但是我不知道这是在哪里设置或如何更改它。我的 phpunit.xml 文件是:
<phpunit bootstrap="./application/bootstrap.php" colors="true">
<testsuite name="Personal Development">
<directory>./</directory>
</testsuite>
<filter>
<whitelist>
<directory suffix=".php">../application/</directory>
<exclude>
<file>../application/Bootstrap.php</file>
<file>../application/controllers/ErrorController.php</file>
<directory suffix=".phtml">../application/</directory>
</exclude>
</whitelist>
</filter>
<logging>
<log type="coverage-html" target="./log/report" charset="UTF-8"
yui="true" highlight="true" lowUpperBound="50" highLowerBound="80"/>
<log type="testdox-html" target="./log/testdox.html" />
</logging>
</phpunit>
如何解决这个错误?
【问题讨论】:
-
我假设它在调用 phpunit 时通过,检查 get 执行的命令,看看是否有一些配置可以影响。