2013-04-17 10:21:46

Installing PHPUnit in Ubuntu based systems.


Categories php unit testing

I don't know why but after following pretty straight forward documentation on installing PHPUnit, nothing worked. After poking around for some I completely screwed phpunit installation somehow. Searching for help around stackoverflow didn't help much either. Anyway, one colleague of mine pointed out the following solution:

sudo apt-get remove phpunit
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
sudo pear install --force --alldeps phpunit/PHPUnit

Hope this helps.

No comments

Leave a comment