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
Post a Comment