1
我必須安裝和配置PHPUnit。
我與梨安裝了它,現在我必須配置include_path
內php.ini
,因爲如果我啓動我的控制檯內的命令:PHPUnit配置
phpunit version
回我這個錯誤:
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 64
Fatal error: require_once(): Failed opening required 'File/Iterator/Autoload.php' (include_path='.:') in /usr/share/pear/PHPUnit/Autoload.php on line 64
我不希望以絕對方式設置所有路徑。 我檢查我的系統裏,我有發現裏面/usr/share/pear
一些文件,然後我曾嘗試:
include_path =".:/Applications/XAMPP/xamppfiles/lib/php:/usr/share/pear"
include_path =".:/usr/share/pear"
include_path=".:/Applications/xampp/xamppfiles/lib/php:/Applications/xampp/xamppfiles/lib/php/pear"
include_path=".:/Applications/XAMPP/xamppfiles/lib/php/pear:/Applications/XAMPP/xamppfiles/lib/php/pear:/usr/share/pear"
include_path=".:/Applications/XAMPP/xamppfiles/lib/php:/Applications/XAMPP/xamppfiles/lib/php/pear"
任何這種包含路徑的工作,如果我laungh phpunit version
同樣的錯誤。顯然,每當我更改我的php.ini
文件時,我都會重新啓動我的apache服務器。
我該如何解決這個問題?
我看過很多問題/答案,但沒有人解決我的問題。
我在與小牛隊的Mac中使用XAMPP。
感謝