我尝试使用 xdebug 执行 phpunit 以进行代码覆盖,如下所示,
C:\wamp\bin\php\php5.3.22>phpunit -coverage-html /tmp C:\<unittest file pat>\TestRetainer.php
它给出的输出如下,
PHPUnit 3.7.32 by Sebastian Bergmann.
....
Time: 36 ms, Memory: 5.75Mb
OK (4 tests, 12 assertions)
C:\wamp\bin\php\php5.3.22>
但我找不到报告文件的 html 版本。
我浏览了这个网址http://phpunit.de/manual/current/en/phpunit-book.html#code-coverage-analysis。但我没有找到任何运气。
请帮助我。