php - How can I get IDE autocomplete for PHPUnit if I installed from source? -


i know seems duplicate, problem different:

since installed php source, folders not there. installed phpunit usual way using pear.

normally add /usr/share/php include path of ide or project , done. folder doesn't exist.

$ updatedb $ locate phpunit /usr/local/bin/phpunit /usr/local/lib/php/.channels/pear.phpunit.de.reg /usr/local/lib/php/.channels/.alias/phpunit.txt /usr/local/lib/php/.registry/.channel.pear.phpunit.de /usr/local/lib/php/.registry/.channel.pear.phpunit.de/phpunit.reg  $ locate phpunit /usr/local/lib/php/doc/phpunit /usr/local/lib/php/doc/phpunit/license /usr/local/lib/php/doc/phpunit/readme.md 

i tried including /usr/local/lib/php, still "undefined class phpunit_framework_testcase"

note php , phpunit work fine, need ide autocompletion.

what can do?

as of phpunit v4 pear distribution contains phar version instead of lots of individual files. , there 1 file (phpunit) instead of launcher + php files (on installation phpunit.phar gets renamed phpunit).

because has no .phar extension, ide not able recognize accordingly.

the easiest option download actual phar version of phpunit , place in anywhere in project (e.g. inside vendors folder).


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -