How can I get IDE autocomplete for PHPUnit?

Vitalii Zurian picture Vitalii Zurian · Jul 31, 2012 · Viewed 15.1k times · Source

I am using Symfony2, everything is installed, my tests work so good so far.

I'd like to get an autocompletion of PHPUnit's methods.

Symfony's WebTestCase class extends from PHPUnit_Framework_TestCase just like below:

abstract class WebTestCase extends \PHPUnit_Framework_TestCase

The parent class is highlighted as not existing although.

How can I tell my IDE to use PHPUnit's library?

I am using PHPStorm
PHPUnit is available by path /Users/myUser/pear/share/pear/PHPUnit/

Answer

Brian picture Brian · Jul 31, 2012

Add it as a library... in the project that you are editing add it to 'External Libraries'.

It should then be included.