Move preference for PEAR higher up the list, apt and yum repos tend to be out of...
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 16 Nov 2010 15:29:48 +0000 (15:29 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 16 Nov 2010 15:29:48 +0000 (15:29 +0000)
maintenance/tests/phpunit/install-phpunit.sh

index 208b975..dbe5a02 100755 (executable)
@@ -7,16 +7,16 @@ fi
 
 if ( has_binary phpunit ); then
     echo PHPUnit already installed
+else if ( has_binary pear ); then
+    echo Installing phpunit with pear
+       pear channel-discover pear.phpunit.de
+    pear install phpunit/PHPUnit
 else if ( has_binary apt-get ); then
     echo Installing phpunit with apt-get
     apt-get install phpunit
 else if ( has_binary yum ); then
     echo Installing phpunit with yum
     yum install phpunit
-else if ( has_binary pear ); then
-    echo Installing phpunit with pear
-    pear channel-discover pear.phpunit.de
-    pear install phpunit/PHPUnit
 fi
 fi
 fi