I\'m trying to tell pear
that where to find PHPUnit by using this command:
sudo pear channel-discover pear.phpunit.de
The ou
You can't install phpunit using pear anymore: https://github.com/sebastianbergmann/phpunit/wiki/End-of-Life-for-PEAR-Installation-Method
But you can still install it using the phar file: https://phpunit.de/getting-started.html
Or using composer: https://phpunit.de/manual/current/en/installation.html#installation.composer
Download the phar archive worked for me:
https://github.com/Mayflower/PHP_CodeBrowser
wget https://github.com/mayflower/PHP_CodeBrowser/releases/download/1.1.1/phpcb-1.1.1.phar
mv phpcb-1.1.1.phar /usr/local/bin/phpcb
chmod a+x /usr/local/bin/phpcb
phpcb --version
PHP_CodeBrowser version 1.1.1
For those on RHEL distros (CentOS/Fedora/ etc) and not yet using composer, you can install phpunit using YUM:
yum install phpunit
Most people just composer nowadays. But since you seem to be on Ubuntu you can always do:
sudo apt-get install phpunit