Visual PHPUnit找不到文件路径错误

时间:2014-05-15 04:10:37

标签: php phpunit pear

我正在尝试使用Visual PHPUnit https://github.com/NSinopoli/VisualPHPUnit/ 我的操作系统是OSX版本10.8.5。

我安装了梨。效果很好。我检查了http://pear.php.net/manual/en/installation.checking.php#installation.checking.cli.phpdir

我通过pear安装了phpunit。

当我跑步时,我收到了错误

( ! ) Warning: require_once(PHPUnit/Autoload.php): failed to open stream: No such file or directory in /Users/myname/Sites/VisualPHPUnit/app/config/bootstrap.php on line 83


( ! ) Fatal error: require_once(): Failed opening required 'PHPUnit/Autoload.php' (include_path='.:/usr/share/pear/share/pear:/Users/myname/pear/share/pear:/usr/local/pear/share/pear:/Users/myname/Sites/VisualPHPUnit:/usr/local/pear/share') in /Users/myname/Sites/VisualPHPUnit/app/config/bootstrap.php on line 83

PHPUnit文件夹应该在pear路径下还是在我的项目路径中? 我的phpunit安装问题是什么?有人帮帮我吗?

1 个答案:

答案 0 :(得分:1)

要查看pear安装phpunit的位置

$ pear list phpunit/phpunit