Follow up r75245.
[lhc/web/wiklou.git] / maintenance / tests / phpunit / install-phpunit.sh
1 #!/bin/sh
2
3 if [ `id -u` -ne 0 ]; then
4 echo '*** ERROR' Must be root to run
5 exit 1
6 fi
7
8 if ( has_binary phpunit ); then
9 echo PHPUnit already installed
10 else if ( has_binary apt-get ); then
11 echo Installing phpunit with apt-get
12 apt-get install phpunit
13 else if ( has_binary yum ); then
14 echo Installing phpunit with yum
15 yum install phpunit
16 else if ( has_binary pear ); then
17 echo Installing phpunit with pear
18 pear channel-discover pear.phpunit.de
19 pear install phpunit/PHPUnit
20 fi
21 fi
22 fi
23 fi