【问题标题】:PHPunit test not workingPHPunit测试不起作用
【发布时间】:2013-11-05 18:57:10
【问题描述】:

我正在尝试添加这个 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>

【问题讨论】:

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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2015-07-08
      • 1970-01-01
      • 1970-01-01
      • 2018-05-12
      • 2020-11-13
      • 2015-03-15
      • 2012-07-20
      • 2017-01-09
      • 2019-07-20
      相关资源
      最近更新 更多