在使用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