- 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
^ using apt-get will install an older version, as ubuntu’s repos are not usually up to date. I had to uninstall from apt-get and install from PEAR for netbeans to work with PHPUnit properly.
Hi Joshua,
I figured that from Synaptic.
Still was very useful confirmation!! 🙂
Thanks!!
That worked perfectly. Thank you very much!