Fix PEAR part of install-phpunit.sh.
authorMatthew Flaschen <mflaschen@wikimedia.org>
Sat, 15 Dec 2012 00:51:39 +0000 (16:51 -0800)
committerMatthew Flaschen <mflaschen@wikimedia.org>
Tue, 18 Dec 2012 17:16:36 +0000 (12:16 -0500)
* Discover additional channel, update, and use alldeps.
* Remove obsolete pear.symfony-project.com
* Per https://www.mediawiki.org/wiki/Manual:PHP_unit_testing/Installing_PHPUnit#Using_PEAR

Change-Id: I7f348c967c1526736ec7f34d610d315f8aabd504

tests/phpunit/install-phpunit.sh

index 2d2b53a..3601274 100755 (executable)
@@ -18,8 +18,9 @@ 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