4 if [ -z `which $1` ]; then
10 if [ `id -u` -ne 0 ]; then
11 echo '*** ERROR: Must be root to run'
15 if ( has_binary phpunit
); then
16 echo PHPUnit already installed
17 else if ( has_binary pear
); then
18 echo Installing phpunit with pear
19 pear channel-discover pear.phpunit.de
20 pear channel-discover components.ez.no
21 pear channel-discover pear.symfony.com
23 pear
install --alldeps phpunit
/PHPUnit
24 else if ( has_binary apt-get
); then
25 echo Installing phpunit with apt-get
26 apt-get
install phpunit
27 else if ( has_binary yum
); then
28 echo Installing phpunit with yum
30 else if ( has_binary port
); then
31 echo Installing phpunit with macports
32 port
install php5-unit