【发布时间】:2012-02-06 02:19:50
【问题描述】:
我一直在尝试在我的 phpunit 测试中使用 echo 东西,但到目前为止没有运气。
我阅读了有关 xml 配置文件的文档,显然 debug 参数是我正在寻找的。不幸的是,它仍然不起作用。无论如何,这是我的 xml 配置文件:
<?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true"
processIsolation="true"
verbose="true"
debug="true">
</phpunit>
processIsolation 和 verbose 都被接受,但 debug 不被接受。
当我像这样直接将它传递给 phpunit 时,该命令实际上工作得很好:
phpunit --debug MyTest.php # here stuff is echoed correctly
但是对于 xml 配置文件,它看起来被忽略了。
【问题讨论】: