In the following steps, we will upgrade PEAR and install PHPUnit via PEAR, for the corresponding environments:
pear.batfile belongs (D:\xampp\php), and execute the following command:
pear upgrade pear
This upgrades the existing PEAR installation. In Ubuntu or Mac OS X system, run the following command:
sudo pear upgrade pear
In the case of MAMP, if you encounter the error sudo: pear: command not found, then refer to the section Configuring MAMP issues.
pear config-set auto_discover 1 pear install pear.phpunit.de/PHPUnit
It discovers the download ...