CH 3 - PHPUnit: no tests found in class [Resolved]

Hello! I started reading a yii book and I like it. However, i encountered a problem. Author runs a PHPunit on this code without a problem.




class MessageTest extends CTestCase

{

	public function testRepeat()

	{

	}

}



But I always get error: ‘No tests found in class “MessageTest”’.

PHPUnit version: 3.5.14

This test should work, the message you got happen if there are no test methods in this class. Check again, if you saved your test class correctly.

I fixed the error by modifying PHPUnit’s xml file.

You can close this topic now.