I can't get PHPUnit to run - Failed opening required 


I can't get PHPUnit to run - Failed opening required 'SebastianBergmann/Diff/autoload.php'

我通过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

原来我通过pear安装了phpunit,它给了我3.7。*,当我从git下载并上传php代码时,我下载了3.8…当我下载了3.7 PHP代码后,一切正常。