Zend - 找不到 PHPUnit/framework.php [英] Zend - cannot find PHPUnit/framework.php

查看:49
本文介绍了Zend - 找不到 PHPUnit/framework.php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行安装了 XAMPP 的 OSX Lion.事实证明,使用 XAMPP 设置 PEAR 很困难,但我成功了并安装了 PHPUnit.当我查看 XAMPP pear 目录时,我看到一个名为PHPUnit"的文件夹,当我查看该文件夹时,我看到以下文件:

I am running OSX Lion with an installation of XAMPP. Setting up PEAR with XAMPP has proven to be difficult, but I got it work and installed PHPUnit. When I look in the XAMPP pear directory I see a folder called 'PHPUnit', and when I look in that folder, I see the following files:

Assert.php
RepeatedTest.php
TestCase.php
TestFailure.php
TestResult.php
GUI
Skeleton.php
TestDecorator.php
TestListener.php
TestSuite.php

当我运行 zf create project myproject 时,我收到以下消息:

When I run zf create project myproject, I get the following message:

Warning: require_once(PHPUnit/Framework.php): failed to open stream: No such file or directory in /Users/frankie/Websites/Libraries/ZendFramework-1.11.10/library/Zend/Test/PHPUnit/ControllerTestCase.php on line 29

我不知道从哪里获得这个 Framework.php 文件或如何解决这个问题.任何帮助表示赞赏.

I have no idea where to get this Framework.php file or how to fix this. Any help is appreciated.

推荐答案

Zend Framework 要求你运行 PHPUnit 3.5.x 并且我假设你已经安装了 PHPUnit 3.6.x 来自梨.

Zend Framework requires you to run PHPUnit 3.5.x and I assume you have installed PHPUnit 3.6.x from pear.

查看有关如何<的指南code>downgrade-phpunit-3-6-to-3-5-15 解决运行 ZF1 测试时的问题

Check out the guide on how to downgrade-phpunit-3-6-to-3-5-15 to fix your issue when running the ZF1 tests

这篇关于Zend - 找不到 PHPUnit/framework.php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆