【问题标题】:phpunit installation on xampp through pear通过pear在xampp上安装phpunit
【发布时间】:2012-02-29 19:40:03
【问题描述】:

我正在尝试使用 xampp 通过 pear 安装 PHPunit。当我给 pear channel-discover components.ez.no 时出现以下错误

C:\xampp\php>pear 频道-发现 components.ez.no 发现频道“components.ez.no”失败(频道添加:无法打开“http:// /components.ez.no/channel.xml”(连接到 `components.ez.no:80' 失败:否 可以建立连接,因为目标机器主动拒绝它。 ))

请帮助我。可能是什么问题?

谢谢

【问题讨论】:

    标签: php phpunit xampp


    【解决方案1】:

    我刚刚解决了有关 components.ez.no 关闭的错误,并发现有一种解决方法:

    您应该从http://ezcomponents.org/download 下载 EZ Components 包并将其解压缩到 php\pear\ezc

    然后,使用PHPUnit的PEAR包官网打开Skeleton_Generator包找到: phpunit-skelgen.bat phpunit-skelgen.php

    解压到 php/(你应该已经有 phpunit.bat / phpunit 文件了)

    我希望我能帮上忙。祝你好运!

    【讨论】:

      【解决方案2】:

      据我所知,过去几周该网站has been up and down。尝试在浏览器中访问 http://components.ez.no/channel.xml,如果它显示 XML,则尝试运行该命令。

      如果这不起作用,请尝试更新 PEAR。

      【讨论】:

      • 我更新了 pear,现在我又遇到了另一个错误。我得到这个不仅是因为 pear channel-discover components.ez.no 也是为了 pear channel-discover pear.symfony-project.com & pear channel-discover pear.phpunit.de 。
      • 我得到的错误是:C:\xampp\php>pear channel-discover components.ez.no 通过 http:// 发现通道 components.ez.no 失败并显示消息:channel-a dd : 无法打开“components.ez.no/channel.xml”(连接到 `components .ez.no:80' 失败:由于目标机器主动拒绝,无法建立连接。)
      • 试图通过 https:// 发现频道 components.ez.no 而不是发现频道“components.ez.no”失败(频道添加:无法打开“components.ez.no/channel.xml”(连接到` components.ez.no:443' failed: Unable to find the socket transport "ssl" - 你在配置 PHP 时忘记启用它了吗?))
      猜你喜欢
      • 2011-09-10
      • 2011-01-01
      • 2013-04-03
      • 2011-08-13
      • 2014-12-25
      • 2011-07-06
      • 1970-01-01
      • 2013-02-26
      • 2012-02-24
      相关资源
      最近更新 更多