How-to / Programming / Software

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!


5 thoughts on “Installing PHPUnit on Ubuntu 8.04

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

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s