Remove phpunit from pears

On MAC OS, when I use phpunit, it says:

PHPUnit 4.0.17 by Sebastian Bergmann.

You have installed PHPUnit via PEAR. This installation method is no longer
supported and http://pear.phpunit.de/ will be shut down no later than
December, 31 2014.

Please read http://phpunit.de/manual/current/en/installation.html and
learn how to use PHPUnit from a PHAR or install it via Composer.

Therefore, I would like to remove it and reinstall the new version 4.1. But when I run:

# pear uninstall pear.phpunit.de/PHPUnit

or

# pear uninstall phpunit/PHPUnit

it returns:

unknown channel ...
+4
source share
1 answer

Is it possible that you deleted PEAR after that, or that the PEAR registry files were somehow overwritten?

If you do the following, you will see a list of the phpunit pear channel you are downloading, along with other channels that you have registered or installed from:

$ pear list-channels

For each of them, you should see the channel domain name, its alias, and a summary.

Removing from any of these channels should work the same as you tried, so I think the channel log files may be somehow modified.

+1
source

Source: https://habr.com/ru/post/1548736/


All Articles