3 if [ `id -u` -ne 0 ]; then
4 echo '*** ERROR' Must be root to run
8 if ( has_binary phpunit
); then
9 echo PHPUnit already installed
10 else if ( has_binary pear
); then
11 echo Installing phpunit with pear
12 pear channel-discover pear.phpunit.de
13 pear
install phpunit
/PHPUnit
14 else if ( has_binary apt-get
); then
15 echo Installing phpunit with apt-get
16 apt-get
install phpunit
17 else if ( has_binary yum
); then
18 echo Installing phpunit with yum