Installing PHPUnit on Ubuntu 8.04

  1. You need to get the latest release of PHP

    $sudo apt-get install php5

  2. To get PHPUnit you need to get the PEAR installer, which is part of PHP

    $sudo apt-get install php-pear

  3. Once you have PEAR installed you must register the PEAR channel with the PEAR environment

    $sudo pear channel-discover

  4. The and the last step is to get and install PHPUnit

    $sudo pear install phpunit/PHPUnit

Good luck!

4 thoughts on “Installing PHPUnit on Ubuntu 8.04

    1. shadowmancer

      ^ 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.


Leave a Reply

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