Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
138 views
in Technique[技术] by (71.8m points)

php - How can I get IDE autocomplete for PHPUnit?

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/

question from:https://stackoverflow.com/questions/11741458/how-can-i-get-ide-autocomplete-for-phpunit

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

It should then be included.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...