I\'ve got a fresh copy of PHPUnit installed on my system (Ubuntu 11), but whenever I type phpunit in the console I get the following error:
PHP Fa
While i had the same problem and managed to solve it using setting correct environment variables.
You can get to the solve here http://rkrants.blogspot.in/2013/01/installing-phpunitpear-in-ubuntu-1210.html
In short I had to re-install PHPUnit using pear after setting the variables correct.
I used a Ubuntu 12.10 installation and it works perfectly now.