zf工具& PHPunit 在 include_path 中无法识别
我已经为此苦苦挣扎了一段时间。
当使用 Zend Framework 1.11 中包含的 zf 工具创建项目和操作等时,我总是收到通知,在包含路径中找不到 PHPUnit,因此测试尚未自动创建。我知道这只是一个通知,而不是一个错误,但我希望它能够工作。
我正在使用 OS X 10.7 和 MAMP,我在 MAMP 中的包含路径如下:
include_path = ".:/Applications/MAMP/bin/php/php5.3.6/lib/php:/Applications/MAMP/bin/php/php5.3.6/lib/php/PHPUnit"
到目前为止我在互联网上发现的问题的唯一提示是 zf 工具正在使用本机安装的 php 和包含路径,因此没有注意到PHPUnit。
我想我可以找到 php.ini 文件并将 PHPUnit 添加到它的包含路径中,但感觉有点像黑客。
有没有办法“优先”安装 php?
谢谢你的帮助。
铝
I've be struggling with this for a while.
When using the zf tool included in the Zend Framework 1.11 to both create projects and actions and so on, I always get the notice that PHPUnit was not found in the include path and hence the test have not automatically been created. I know that this is only a notice and not an error however I would like it to work.
I am using OS X 10.7 and MAMP, my include path in MAMP is as follows:
include_path = ".:/Applications/MAMP/bin/php/php5.3.6/lib/php:/Applications/MAMP/bin/php/php5.3.6/lib/php/PHPUnit"
The only hint of the problem I have found so far on the internet is that the zf tool is using the natively installed php and include path and hence not noticing the PHPUnit.
I suppose that I could find the php.ini file and add the PHPUnit to it's include path but it feels a little bit of a hack.
Is there away to "prioritise" php installs?
Thank you for you help.
Al
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我终于在 http://wiki.dreamhost.com/Zend_framework 找到了答案
基本上遵循步骤 5。
无论如何,请替换
为
感谢您的帮助。
I have finally found the answer at http://wiki.dreamhost.com/Zend_framework
Basically follow Step 5.
Replace
with
Thank for your help anyway.