Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Ubuntu 11 上下载 Zend 框架 1.11 后,当我尝试创建新项目时,我收到警告 php_Unit 在您的包含路径中找不到,在我安装了 phpUnit 后,我收到了很多其他警告,所以这里有什么问题??以及如何设置?
您需要检查 PHP 的路径变量。您可以将其放入脚本中以显示它:
echo get_include_path();
它可能会显示一些不同的系统路径,PHP 的自动加载器将在其中查找它需要的类。确保 PHPUnit 位于这些路径之一,或修改路径以包含 PHPUnit 在系统上的位置。听起来可能 Ubuntu 11 引入了回归,默认 PHP 路径或 PHPUnit 的位置不再匹配。