不带 PEAR 的 Stagehand 模块
我想创造环境。 CakePHP + Hudson CI 环境。 但。我没有安装 PEAR 的权限 所以我在供应商/pear/Stagehand 上设置了Stagehand 模块 但这是行不通的。 :-<
require_once(Stagehand/Autoload.php): failed to open stream: No such file or directory
php -d include_path=./:$CAKE/vendors/pear/PEAR/ ./vendors/pear/bin/cakerunner --cakephp-app-path $CAKE/app --log-junit=$CAKE/app/tmp/logs/unittest.xml -R $CAKE/app/tests/cases
Fatal error: Class 'Stagehand_TestRunner_Runner_RunnerFactory' not found
你有什么解决办法吗?
I wanna create environment .
CakePHP + Hudson CI env.
but. I don't have a privilege of installing PEAR
so I set Stagehand module on vendor/pear/Stagehand
but that is not work. :-<
require_once(Stagehand/Autoload.php): failed to open stream: No such file or directory
php -d include_path=./:$CAKE/vendors/pear/PEAR/ ./vendors/pear/bin/cakerunner --cakephp-app-path $CAKE/app --log-junit=$CAKE/app/tmp/logs/unittest.xml -R $CAKE/app/tests/cases
Fatal error: Class 'Stagehand_TestRunner_Runner_RunnerFactory' not found
Do you have any solutions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
:$CAKE/vendors/pear/PEAR/
可能是错误的。我猜Stagehand/Autoload.php
文件安装在vendors/pear/Stagehand/Autoload.php
中。在这种情况下,使用:$CAKE/vendors/pear/PEAR/
is probably wrong. I guess theStagehand/Autoload.php
file is installed invendors/pear/Stagehand/Autoload.php
. In that case, use我推荐针对 PHP 应用程序使用特定于项目的 PEAR 环境。根据您的情况,您的项目可以包含 PEAR 基础系统和所需的软件包,如下所示:
或
引入特定于项目的 PEAR 环境后,您可以将预加载脚本的路径指定为:
最后,将用于运行测试的命令行编辑为:
本手册页解释了如何为您的项目构建特定于项目的 PEAR 环境。
I recommend the project-specific PEAR environment for a PHP application. In yor case, your project can include the PEAR base system and required packages as follows:
or
After introducing the project-specific PEAR environment, you can specify the path to into your preload script as:
Finally, edit the command line for running tests as:
This manual page explains how to build the project-specific PEAR environment for your project.