Enabling autocomplete for PHPUnit in PHP Storm
Please keep in mind that this post was written more than 2 years ago and might be outdated.
To enable autocomplete in tests add to project External Libraries following path (assuming you used pear channel to install phpunit)
/usr/share/php/PHPUnit
Now autocomplete should work in all classes that extends \PHPUnit_Framework_TestCase