我无法运行PHPUnit - 无法打开所需的'SebastianBergmann / Diff / autoload.php'

时间:2013-06-05 22:56:00

标签: php phpunit

我通过pear安装了PHPUnit,并将所需的PHP文件上传到帐户中。

我用我能想象的每个可能的包含路径设置php.ini ...我知道它正在使用正确的php.ini文件,因为当我更新它时...错误显示包含路径更改(下方) .....当我搜索服务器时,它根本找不到任何名为“SebastianBergmann”的文件夹......我不知道该怎么做......请帮助..

Fatal error: require_once(): Failed opening required 'SebastianBergmann/Diff/autoload.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/admin/inc:/home/limber/public_html/limber/plugin/PHPUnit:/usr/local/bin/phpunit') in /home/limber/public_html/limber/plugin/PHPUnit/Autoload.php on line 69

Call Stack:
    0.0001     635368   1. {main}() /usr/local/bin/phpunit:0
    0.0029    1109328   2. PHPUnit_TextUI_Command::main() /usr/local/bin/phpunit:46
    0.0029    1110056   3. PHPUnit_TextUI_Command->run() /usr/local/lib/php/PHPUnit/TextUI/Command.php:129
    0.0047    1578072   4. PHPUnit_Runner_BaseTestRunner->getTest() /usr/local/lib/php/PHPUnit/TextUI/Command.php:150
    0.0047    1578072   5. PHPUnit_Runner_BaseTestRunner->loadSuiteClass() /usr/local/lib/php/PHPUnit/Runner/BaseTestRunner.php:104
    0.0049    1622128   6. PHPUnit_Runner_StandardTestSuiteLoader->load() /usr/local/lib/php/PHPUnit/Runner/BaseTestRunner.php:168
    0.0055    1787856   7. PHPUnit_Util_Fileloader::checkAndLoad() /usr/local/lib/php/PHPUnit/Runner/StandardTestSuiteLoader.php:77
    0.0055    1788000   8. PHPUnit_Util_Fileloader::load() /usr/local/lib/php/PHPUnit/Util/Fileloader.php:76
    0.0055    1800264   9. include_once('/home/limber/public_html/limber/test/public_html/limber/core/NumTest.php') /usr/local/lib/php/PHPUnit/Util/Fileloader.php:92
    0.0058    1870848  10. include_once('/home/limber/public_html/limber/plugin/PHPUnit/Autoload.php') /home/limber/public_html/limber/test/public_html/limber/core/NumTest.php:3

root@host [/home/limber/public_html/limber/test/public_html/limber/core]# `pear config-get php_bin` -i | grep -E Configurati
on\ File\|include_path
Failed loading xdebug.so:  xdebug.so: cannot open shared object file: No such file or directory
Failed loading xdebug.so:  xdebug.so: cannot open shared object file: No such file or directory
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini
include_path => .:/usr/lib/php:/usr/local/lib/php:/home/admin/inc:/home/limber/public_html/limber/plugin/PHPUnit => .:/usr/lib/php:/usr/local/lib/php:/home/admin/inc:/home/limber/public_html/limber/plugin/PHPUnit

1 个答案:

答案 0 :(得分:0)

原来我安装了phpunit via pear,这给了我3.7。*,当我从git下载并上传php代码时我下载了3.8 ...当我下载3.7 PHP代码时,它都运行正常。