From ArchWiki
Revision as of 15:14, 9 May 2012 by Pjezek (talk | contribs) (updated pear commands from Sebastians page)
Jump to: navigation, search


First of all, you need PEAR to install PHPUnit.

pacman -S php-pear

Now you can do just like the official documentation. As root, just type

pear config-set auto_discover 1
pear install



For running PHPUnit properly you must have the /usr/bin/ directory listed in the open_basedir option at the /etc/php/php.ini

open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/bin/

Or just unset it

open_basedir =


In some php framework, you will meet the error of missing Selenium. Just install the selenium package with pear ( make sure you have root right )

 pear install phpunit/PHPUnit_Selenium