PHPUnit 不安装可执行脚本

发布于 2024-11-27 07:46:29 字数 311 浏览 6 评论 0原文

所以我使用 PEAR 安装了 PHPUnit,一切正常。安装显示一切都已安装,并且在我的 /usr/lib/php 中,PHPUnit 文件夹中充满了完整的库。

但是,我在任何地方都找不到 phpunit.sh 。它位于哪里?如果我尝试在 CLI 上运行 phpunit,它找不到该命令,因此它不能位于“标准”二进制文件夹中的任何位置,例如 /usr/local/bin< /代码>。

我必须自己下载脚本吗?也许甚至我自己编译它?

PS:我运行的是 OS X 10.6

So I installed PHPUnit using PEAR, everything worked fine. The installation showed that everything was installed, and in my /usr/lib/php the PHPUnit folder is filled with the complete library.

However, I can't find the phpunit.sh anywhere. Where is it located? If I try to run phpunit on CLI, it doesn't find the command, so it can't be anywhere in the "standard"-binary folders like /usr/local/bin.

Do I have to download the script myself? Maybe even compile it myself?

PS: I'm running on OS X 10.6

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

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

发布评论

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

评论(1

奶气 2024-12-04 07:46:29

运行

$ pear list phpunit/phpunit
...
script /usr/bin/phpunit
...

这是您的可执行脚本。没有附加.sh

PHPUnit是纯PHP,不需要编译任何东西。

Run

$ pear list phpunit/phpunit
...
script /usr/bin/phpunit
...

that's your executable script. No .sh appended.

PHPUnit is pure PHP, no need to compile anything.

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