PHPunit测试不起作用

时间:2013-10-26 18:42:07

标签: php zend-framework powershell phpunit include-path

我正在尝试添加这个phpunit来学习zend框架2,但我无法让它工作。我已经按照官方zf2教程(http://framework.zend.com/manual/2.0/en/user-guide/unit-testing.html)中的步骤进行操作,现在我面临着一些无知的错误消息

Warning: require_once(File/Iterator/Autoload.php): failed to open stream: No such file or directory in C:\xampp\php\pear\PHPUnit\Autoload.php on line 64

Fatal error: require_once(): Failed opening required 'File/Iterator/Autoload.php' (include_path='.;\php\zend_framework\library;\php\pear\PEAR') in C:\xampp\php\pear\PHPUnit\Autoload.php on line 64
PS C:\xampp\htdocs\new103\module\Application\test>

1 个答案:

答案 0 :(得分:0)

需要将php.ini include_path更改为绝对路径列表,现在可以运行phpunit。