How can I get code completion for PHPUnit?

I have PHPUnit working just fine through Web IDE.  Tests run....and fail....as expected.  However, Web IDE isn't seeing up the PHPUnit classes and thus code completion won't work.  Any ideas?  Here's my simple test case for reference:

require_once 'PHPUnit/Framework.php';

class testimonialFactoryTest extends PHPUnit_Framework_TestCase {

    function testIt() {
        $this->assertEquals(0,0);
    }


}


I also found that if I leave out the 'require_once' statement, the tests still run and pass/fail as expected.

0
2 comments

To get the completion in current version you need to add PHPUnit sources to your project. Use Settings|Directories to add any folder from your HDD. This makes project tree not so pretty and will be unnecessary in future, see http://youtrack.jetbrains.net/issue/WI-350

0
Avatar
Permanently deleted user

Works for me.  Thanks for the quick reply.

0

Please sign in to leave a comment.