我試圖讓phpUnit
在運行plesk pannel的centos上運行。phpUnit - 文件/迭代器/ Autoload.php失敗打開
我已成功安裝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
但是每當我從殼我得到以下錯誤運行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
有沒有人線索如何解決這個問題?
'pear info phpunit/File_Iterator'說什麼?它看起來沒有安裝,但PHPUnit依賴於它。 – 2012-02-24 00:47:25
在我的Mac OSX 10.7.1的/etc/php.ini中,include_path被設置爲/ user/lib/php/pear而不是/ usr/lib/php/pear令人驚訝的是,多久你可以盯着某個東西而不是注意額外的e! – 2013-06-05 08:14:28
我相信這是任何有關php單元File_Iterator的問題的正確答案。 https://github.com/sebastianbergmann/php-file-iterator – 2013-06-17 09:29:56