PHPUnit is a testing framework that aims to make it as easy as possible to create, maintain, and execute individual, or more commonly, whole batteries of tests for components of code.
Although you can download the source code for PHPUnit directly and install it that way, we will follow the only officially supported method for installing PHPUnit, which is via the pear
installer utility. The developers of PHPUnit maintain their own PEAR channel, which we will have to let PEAR know about before we can install packages from it. To learn more about the PHP Extension and Application Repository (PEAR) and the pear
command-line utility used to manage channels and application packages, you can visit their site at:
Following is a transcript of using the pear
installer to discover the PHPUnit channel and install the package.
Let's start by taking a look at what channels are currently available on my system.
Since pear.phpunit.de
, the Pear...