【发布时间】:2013-04-10 16:05:18
【问题描述】:
[编辑] 我的测试环境如 http://www.slideshare.net/DragonBe/unit-testing-after-zf-18 所示,并使用来自 https://github.com/DragonBe/zfunittest 的源代码。
当我尝试运行 simples dispatch("/") 时,我得到以下答案:
C:\wamp\www\MyProject\tests>phpunit
PHPUnit 3.7.19 by Sebastian Bergmann.
Configuration read from C:\wamp\www\MyProject\tests\phpunit.xml
.
C:\wamp\www\MyProject\tests>
有人知道发生了什么吗?
phpunit 只是停止,没有给我任何反馈。
我在 Windows 7x 64、ZF 1.11、PHP 5.4.3 和 PHPunit 3.7 上运行 Wampserver 2.2。
提前谢谢大家。
【问题讨论】:
-
到目前为止你尝试过什么?如果在 dispatch() 方法调用之后执行 var_dump(),你在终端中看到什么了吗?
-
你拼错了
display_erros,你确定你看到错误了吗? -
display_errors 已正确写入我的本地副本。还没有任何工作。实际上,只有当我尝试制作抽签时才会出现问题。如果我之前 var_dump() 会显示错误,但是当我执行 $this->dispatch("/") 时,例如,没有其他任何事情发生。 phpunit 只打印一个“。”它完成了。
标签: unit-testing zend-framework phpunit