加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

从pear卸载phpunit

发布时间:2020-12-13 22:53:11 所属栏目:PHP教程 来源:网络整理
导读:在我使用phpunit的MAC OS上它说: PHPUnit 4.0.17 by Sebastian Bergmann.You have installed PHPUnit via PEAR. This installation method is no longersupported and http://pear.phpunit.de/ will be shut down no later thanDecember,31 2014.Please rea
在我使用phpunit的MAC OS上它说:

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

要么

# pear uninstall phpunit/PHPUnit

它返回:

unknown channel ...

解决方法

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

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

$pear list-channels

对于每一个,您应该看到频道域名,别名和摘要.

从任何这些频道卸载应该与您尝试的方式相同,这就是我认为频道注册文件可能以某种方式被更改的原因.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读