Field Notes from the Workshop · № 156 Programming
Installing PHPUnit on Ubuntu 8.04
- You need to get the latest release of PHP
$sudo apt-get install php5
- To get PHPUnit you need to get the PEAR installer, which is part of PHP
$sudo apt-get install php-pear
- Once you have PEAR installed you must register the PEAR channel with the PEAR environment
$sudo pear channel-discover pear.phpunit.de
- The and the last step is to get and install PHPUnit
$sudo pear install phpunit/PHPUnit
Good luck!

$sudo apt-get install phpunit