在 Windows 上安装 PHP 测试帮助扩展失败

发布于 2024-12-29 02:20:22 字数 659 浏览 6 评论 0原文

尝试安装 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 可用于尝试手动设置它们。

Trying to install 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.

Using "pecl config-set php_suffix .exe" did not change anything. Unfortunately no recent precompiled DLL's are available to try setting them up manually.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

云醉月微眠 2025-01-05 02:20:22

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

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

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

注意: Test-Helper 扩展被 < 取代 a href="https://github.com/krakjoe/uopz" rel="nofollow">https://github.com/krakjoe/uopz

Seems like it's an issue with the test-helpers distribution package.

See the issue and comments: https://github.com/sebastianbergmann/php-test-helpers/issues/6#issuecomment-3654335

If anyone knows how to fix it, it would be great! :)

Note: the Test-Helper extension is superseded by https://github.com/krakjoe/uopz

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文