sudo apt-get remove phpunit
apt-get autoremove
apt-get autoclean
root@ubuntu:~# pear channel-discover pear.phpunit.de
root@ubuntu:~# pear channel-discover pear.symfony-project.com
root@ubuntu:~# pear channel-discover components.ez.no
root@ubuntu:~# pear update-channels
root@ubuntu:sudo pear upgrade-all
root@ubuntu:sudo pear install --alldeps phpunit/PHPUnit //这个可以省略
root@ubuntu:~# sudo pear install --force --alldeps phpunit/PHPUnit
来源:oschina
链接:https://my.oschina.net/u/2269208/blog/474287