Installation With PEAR
- 1). Download and install PEAR from the PEAR official website (pear.php.net). This is the platform used for your PHPUnit installation. Use the following code to register your PEAR channel to your local environment:
pear channel-discover pear.phpunit.de - 2). Install your PHPUnit with the following code:
pear install phpunit/PHPUnit - 3). Locate your installed PHPUnit in the following section of your server:
/usr/lib/php/PHPUnit
This is the official and most supported installation method for the PHPUnit application, but you also have the option to conduct manual installation.