在使用Composer安裝phpunit的報錯
[Symfony\Component\Process\Exception\ProcessTimedOutException]
The process "git clone --no-checkout 'https://github.com/sebastianbergmann/
phpunit.git' '/var/www/html/parklu_data_collect/vendor/phpunit/phpunit' &&
cd '/var/www/html/parklu_data_collect/vendor/phpunit/phpunit' && git remote
add composer 'https://github.com/sebastianbergmann/phpunit.git' && git fet
ch composer" exceeded the timeout of 300 seconds
這是由於下載太慢超時導致的,解決:增加超時時間
1、查看默認超時時間
composer config --list
2、設置超時時間
composer config -g process-timeout 600
3、清除緩存
composer clear-cache