php install phpunit on ubuntu

ubuntu上安装phpunit,直接安装完,使用会报错,需要更新pear源,

sudo apt-get install phpunit
sudo pear channel-discover pear.phpunit.de
sudo pear channel-discover components.ez.no
sudo pear channel-discover pear.symfony-project.com

sudo pear channel-discover pear.symfony.com
sudo pear upgrade
sudo pear upgrade phpunit/PHPUnit

 

Ubuntu12上测试ok!

标签