If you have met the same problem, this maybe help.
Background :
I installed phpunit in my ubuntu 12.04(the os is lubuntu), the installation passed quite well, but when I launch the command in termianl, I got always this warning :
$ phpunit --version WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-xAGrk8/pkcs11: No such file or directory PHPUnit 4.4.5 by Sebastian Bergmann.