【发布时间】:2012-03-12 16:29:29
【问题描述】:
我写了一些测试,我想用 PHPUnit 3.6 RC 4 和 PHP 5.3.6 生成单元测试,但什么也没发生:
phpunit --bootstrap Bootstrap.php --coverage-html ./tmp library/plugins/PluginTest.php
PHPUnit 3.6.0RC4 by Sebastian Bergmann.
...
Time: 0 seconds, Memory: 14.75Mb
OK (3 tests, 10 assertions)
它什么也没说 我检查了 xdebug 是否启用,这是我的 xdebug.ini :
zend_extension=/usr/lib/php5/20090626/xdebug.so
xdebug.remote_enable=on
xdebug.default_enable=on
xdebug.remote_autostart=on
xdebug.remote_host=127.0.0.1,192.168.0/24,10.37.129.2,10.211.55.2
所以我想知道会发生什么,它是在 Bootstrap 文件中吗?
【问题讨论】:
标签: php unit-testing testing phpunit