【问题标题】:upgrade phpunit windows升级phpunit窗口
【发布时间】:2013-12-03 03:56:11
【问题描述】:

我想在我的 Windows 服务器上安装 PHPUnit 3.7。我遵循了各种说明here,最终得到了 PHPUnit 3.4.1。当我尝试使用再次安装它时:

pear update channels
pear install --alldeps phpunit/PHPUnit

我明白了:

phpunit/PHPUnit is already installed and is the same as the released version 3.4.15
install failed

我知道 3.4.15 不是最新版本...我如何说服 PEAR 它应该在某个地方找到升级?

【问题讨论】:

    标签: phpunit


    【解决方案1】:

    您可能希望在 pear 安装时使用 --force(或 -f)选项:

    pear install -a -f phpunit/PHPUnit

    在找到 this post 之前,我遇到了 PHPUnit 的问题

    【讨论】:

      【解决方案2】:

      试试这个:

      pear upgrade-all
      pear upgrade phpunit/PHPUnit
      

      【讨论】:

        【解决方案3】:

        我试过了,成功了。

        pear upgrade --alldeps phpunit/phpunit
        

        如果上述方法不适合您,请尝试以下方法:

        pear upgrade --alldeps --force phpunit/phpunit
        

        【讨论】:

          【解决方案4】:

          你有没有清除缓存?

          pear clear-cache
          

          然后更新频道,安装phpUnit。 如果失败,请清除缓存,完全卸载phpUnit,然后重新安装。

          【讨论】:

            猜你喜欢
            • 1970-01-01
            • 2012-02-15
            • 2019-08-11
            • 2014-03-31
            • 2016-12-13
            • 2016-12-29
            • 1970-01-01
            • 2017-04-02
            • 1970-01-01
            相关资源
            最近更新 更多