Install the latest PHPUnit with antI got this instructions from a blog, but searching I cannot find which one ... anyway, the last steps seems redundant but this will ensure that the correct version of PHPUnit is installed
$ sudo apt-get install ant php5-dev php-pear
$ sudo pear channel-discover pear.phpunit.de
$ sudo pear channel-discover pear.symfony-project.com
$ sudo pear channel-discover components.ez.no
$ sudo pear update-channels
$ sudo pear upgrade-all
$ sudo pear install --alldeps phpunit/PHPUnit
$ sudo pear install PhpDocumentor
Now we need to install PHPUnit from the repositories, this will create the phpunit file in /usr/bin, I'm sure there is a better way for this but I did't had the time to check
$ sudo apt-get install phpunit
The last step broke phpunit, so we need to reinstall it ...
$ sudo pear uninstall phpunit/PHPUnit
$ sudo pear install phpunit/PHPUnit
Make work PHPUnit with Netbeans againOpen the Netbeans preferences, go to the "PHP" tab and in that tab select the "Unit Testing" tab
/usr/bin/phpunitinto the first box, click "OK"
Now at your project right click the "Include Path" and select the "properties"
Click "Add Folder .,." and select the folder
Now you will have the autocomplete running for abstract classes, methods, asserts, etc.