PHP致命错误:找不到类"CTestCase" [英] PHP Fatal error: Class 'CTestCase' not found in

查看:146
本文介绍了PHP致命错误:找不到类"CTestCase"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是尝试在我的本地机器上运行一个简单的测试,但出现以下错误:

Just trying to run a simple test on my local box but i get the following error:

PHP Fatal error:  Class 'CTestCase' not found in ....

跑步时

$ phpunit UserTest

我猜我的配置一定缺少什么?我只是不知道是什么.

I guess my configuration must be missing something? I just can't figure out what.

使用:

OSX 10.6.7

OSX 10.6.7

PHP 5.3.4

PHP 5.3.4

PHPUnit 3.5.13

PHPUnit 3.5.13

Yii 1.1.7

Yii 1.1.7

推荐答案

确保在与phpunit.xml相同的目录中运行phpunit. :)

Make sure you run phpunit at the same directory where your phpunit.xml is. :)

这篇关于PHP致命错误:找不到类"CTestCase"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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