Merge "phpcs: Pass includes/resourceloader/"
[lhc/web/wiklou.git] / tests / phpunit / install-phpunit.sh
index b7bac77..3601274 100755 (executable)
@@ -18,15 +18,16 @@ else if ( has_binary pear ); then
     echo Installing phpunit with pear
     pear channel-discover pear.phpunit.de
     pear channel-discover components.ez.no
-    pear channel-discover pear.symfony-project.com
-    pear install phpunit/PHPUnit
+    pear channel-discover pear.symfony.com
+    pear update-channels
+    pear install --alldeps 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
+else if ( has_binary port ); then
     echo Installing phpunit with macports
     port install php5-unit
 fi