Fatal Error: Class 'ctestcase' Not Found

Hello guys I am beginner to Yii framework. Every thing is working good in basics, but extending the classes is not working

Here is the code to check DB connection


class DBConnect extends CTestCase


public function testConnection()





The error which I get is as below in attachment



Can any 1 plz tell me whats the problem?

I am using mysql 5.6

php, pear n phpunit is all working find

Help me guys plz

It seems you’re running phpunit not from protected/tests/ where phpunit.xml is.

No I am running from that directory but still getting error. Any other chances?

This is the error which I am getting when I compile in cmd

Hey just came here to see if any 1 can help me