English 中文(简体)
Zend, 无法找到 PHPUnit/framework.php
原标题:Zend - cannot find PHPUnit/framework.php
  • 时间:2011-11-21 17:04:41
  •  标签:
  • php
  • 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创建项目时,我收到以下信息:

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

我对达成这一框架没有任何想法。 php文档或如何确定。 感谢任何帮助。

最佳回答

Zend Framework要求你操作PHPUnit 3.5.x,我假定你已经安装了代码>。

http://dustyreagan.com/down levels-phpunit-3-6-to-3-5-15/“rel=“nofollow”>code>down levels-phpunit-3-6-to-3-5-15 在进行ZF1测试时确定问题

问题回答

Check your bootstrap.php and disable fallback autoloader: Zend_Loader_Autoloader::getInstance()->setFallbackAutoloader(false);

I also had to uninstall phing and replace it by an older version:

sudo pear uninstall phing/phing
sudo pear install phing/phing-2.3.3




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签