从pear中卸载phpunit

从pear中卸载phpunit,phpunit,pear,Phpunit,Pear,在MAC OS上,当我使用phpunit时,它会说: 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://

在MAC OS上,当我使用phpunit时,它会说:

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.
因此,我想卸载它并重新安装新版本4.1。但当我跑步时:

# pear uninstall pear.phpunit.de/PHPUnit

它返回:

unknown channel ...

是否可能是您后来卸载了PEAR,或者PEAR注册表文件被覆盖了

如果您执行以下操作,您将看到列出的phpunit pear频道,以及您注册或安装的其他频道:

$ pear list-channels
对于每一个,您都应该看到频道域名、别名和摘要

从这些通道中卸载应该以您尝试的相同方式工作,这就是为什么我认为通道注册文件可能已被更改的原因

$ pear list-channels