phpunit runs no test

Hi guys,

I’m new to Yii and I try to follow some tuts.

I installed MAMP and PHPUnit.

If i enter

phpunit --version

i get:

PHPUnit 3.6.4 by Sebastian Bergmann.

So i created a DbTest.php containing the following code:


class DbTest extends CTestCase


    public function testConnection()





the output is this:

adis:tests adis$ phpunit unit/DbTest.php

adis:tests adis$ 

Other info:

See attachment.

Can someone please help?


You luky! I work with ubuntu 'couse in MacOsX I’m not able to install pear, phpunit and so, … selenium correctly.

lol, then you bought an to expensive computer, do you use your mac since you bought it? ;D

Why? Just get a bundle like MAMP or XAMPP which come with pear shipped. Then use pear install for phpunit and selenium.

@adis: Have you tried using the --verbose flag?

the difficult is in pear not in mac =).

is this problem solved? if it is, how?!

i have the same problem and its driving me crazy!