【问题标题】:Visual PHPUnit File path not found error未找到 Visual PHPUnit 文件路径错误
【发布时间】:2014-07-03 08:41:09
【问题描述】:

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

我安装了 pear 。它运行良好。我检查了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安装有问题吗?有人帮帮我吗?

【问题讨论】:

    标签: php phpunit pear


    【解决方案1】:

    看pear在哪里安装phpunit做

    $ pear list phpunit/phpunit
    

    【讨论】:

    • 当我检查时,我的 phpunit 是 C:\Users\seintsan>pear list phpunit/phpunit INSTALLED FILES FOR PHPUNIT/PHPUNIT ================ ================== 类型安装路径文档 C:\wamp\bin\php\php5.5.12\docs\PHPUnit\LICENSE 文档 C:\wamp\bin\php\ php5.5.12\docs\PHPUnit\README.md 脚本 C:\wamp\bin\php\php5.5.12\phpunit 脚本 C:\wamp\bin\php\php5.5.12\phpunit.bat 。目录下没有Autoload.php文件。
    猜你喜欢
    • 2020-04-23
    • 1970-01-01
    • 1970-01-01
    • 2021-09-17
    • 1970-01-01
    • 1970-01-01
    • 2017-12-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多