Field Notes from the Workshop · № 156 Programming

Installing PHPUnit on Ubuntu 8.04

Joshua Doodnauth Software Engineer · Toronto
November 5, 2008 1 min read 71 words
  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 pear.phpunit.de

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

    $sudo pear install phpunit/PHPUnit

Good luck!