【问题标题】:Installing test-helpers extension for PHP on Windows fails在 Windows 上为 PHP 安装 test-helpers 扩展失败
【发布时间】:2012-01-25 15:28:42
【问题描述】:

尝试安装 phpunit test-helpers (https://github.com/sebastianbergmann/php-test-helpers)

C:\>pecl install phpunit/test_helpers
downloading test_helpers-1.1.0.tgz ...
Starting to download test_helpers-1.1.0.tgz (10,370 bytes)
.....done: 10,370 bytes
4 source files, building
WARNING: php_bin C:\wamp\bin\php\php5.3.8\php.exe appears to have a suffix \php5.3.8\php.exe, but config variable php_suffix does not match
ERROR: The DSP test_helpers.dsp does not exist.

使用“pecl config-set php_suffix .exe”并没有改变任何东西。不幸的是,没有最近的预编译 DLL 可用于尝试手动设置它们。

【问题讨论】:

  • 我曾经在 Windows 上安装扩展程序时很费劲。当我切换到 Linux 后,事情变得如此轻松/顺利,真是令人惊讶。问题在于,作为一个开源项目,PHP 最终将其大部分 Windows 支持视为一项热爱劳动。因此,windows 环境并没有得到很好的支持。抱歉,我无法提供更多帮助:/
  • 是的。开发和生产服务器是Linux,所以没有问题。但是我的个人开发环境是在 Windows 上设置的(WAMP、PHPStorm、SQLYog、TortoiseSVN)。你知道它是怎么回事,一个人可以非常依赖于开发环境和多年来收集的所有小工具:)。
  • 你说的太对了。我终于举手选择了 Linux 桌面。不过,借助可用的虚拟化选项,您可以保留 VM 中的所有 Windows 内容。 别……拿……我的……记事本++……阿格 (我刚刚死在那里)

标签: php windows unit-testing pear pecl


【解决方案1】:

似乎是 test-helpers 分发包的问题。

查看问题和 cmets:https://github.com/sebastianbergmann/php-test-helpers/issues/6#issuecomment-3654335

如果有人知道如何解决它,那就太好了! :)

注意:the Test-Helper extension is supersededhttps://github.com/krakjoe/uopz

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-09-20
    • 2014-08-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多