Hawk Kroeger
Hawk Kroeger

Reputation: 2334

Eclipse PDT, PHPUnit autocomplete

Is there a way to get PHPUnit auto-completion to work in Eclipse PDT without including the libraries in your project?

Upvotes: 3

Views: 2983

Answers (3)

Anthony Doan
Anthony Doan

Reputation: 1

You need to enable it.

Go to menu: Window -> Preferences. Then under PHP -> Editor -> Code Assist. From under auto activation check the enable auto activation check box (note: 200 ms default is a bit slow). You can adjust the timing.

Upvotes: 0

Gerard
Gerard

Reputation:

How do you add a PHP framework to code completion/assist in Eclipse PDT and can the framework be added as default for all projects?
Generally speaking in Eclipse, you can add a library or framework to code assist/completion by:

  1. Going into Project > Properties
  2. Under PHP Include Path, pick the "Libaries" tab.
  3. Add an "external folder" with the path to where your framework is located.

Upvotes: 0

RibaldEddie
RibaldEddie

Reputation: 5136

Have you tried putting the PHPUnit code on your project's include path?

Upvotes: 4

Related Questions