我正在尝试在运行plesk pannel的centos上运行PHPUnit.
我已经成功安装PHPunit.
Package Version State File_Iterator 1.3.1 stable PHPUnit 3.6.10 stable PHPUnit_MockObject 1.1.1 stable PHP_CodeCoverage 1.1.2 stable PHP_Invoker 1.1.0 stable PHP_Timer 1.0.2 stable PHP_TokenStream 1.1.3 stable Text_Template 1.1.1 stable
然而每当我从shell运行PHPunit命令,我得到以下错误:
PHP Warning: require_once(File/Iterator/Autoload.PHP): Failed to open
stream: No such file or directory in
/usr/share/pear/PHPUnit/Autoload.PHP on line 45
PHP Fatal error:
require_once(): Failed opening required ‘File/Iterator/Autoload.PHP’
(include_path=’.:’) in /usr/share/pear/PHPUnit/Autoload.PHP on line 45
有谁知道如何解决问题的线索?