Netbeans code completion when extending CTestCase

Hi everyone,

I’m new to Yii and am getting myself setup using the testing functionality within Netbeans. I followed the instructions for Netbeans and Yii:

Adding in the Yii framework as an include path correctly enables the code completion function for Yii.

But as the instructions are currently written, you don’t see the parent properties & methods when extending CTestCase. This is due to CTestCase extending PHPUnit_Framework_TestCase. So, to get full completion for the PHPUnit based CTestCase you need the PHPUnit location as an additional include path. On my setup this is:


Restart Netbeans after adding the include path and autocomplete will now also work for CTestCase.

(Added to the forum as I’m too new to post comments to the wiki page in question.)