How to install PHPUnit on Ubuntu 11.10 and get it to work

Installing PHPUnit is not a big deal, but I found that it doesn’t work out of box if you install it from Ubuntu repositories. After apt-get you still need to update it to newer version

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 upgrade
sudo pear upgrade phpunit/PHPUnit

2 thoughts on “How to install PHPUnit on Ubuntu 11.10 and get it to work

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>