Monday, April 9, 2012

Installing PHPUnit on Ubuntu 11.04

If you got problem to install PHPUnit in your ubuntu box then here is enlisted one possible solution.Basically the recommended way to install it, through PEAR.But still you might need to overcome a liitle obstacle if you do not install all the dependencies before.Fortunately, PEAR provides the --alldeps flag while installing so that we can automatically download and install dependencies that are necessary.So here are the following steps you need to follow:

sudo apt-get upgrade pear

sudo pear channel-discover pear.phpunit.de

sudo pear channel-discover pear.symfony-project.

com

sudo pear channel-discover components.ez.no

sudo pear update-channels

sudo pear upgrade-all

sudo pear install --alldeps phpunit/PHPUnit

then test with:

phpunit --version
if you get "PHPUnit X.Y.Z by Sebastian Bergmann" or something similar to this then you are done.Enjoy happy coding.

No comments:

Post a Comment

SyntaxHighlighter