Fix PHPUnit version to 3.7.35
authorphysikerwelt (Moritz Schubotz) <wiki@physikerwelt.de>
Fri, 9 May 2014 10:08:55 +0000 (12:08 +0200)
committerBryanDavis <bdavis@wikimedia.org>
Sat, 10 May 2014 11:20:06 +0000 (11:20 +0000)
"MediaWiki tries to require PHPUnit files directly,
but the phpunit/phpunit PEAR channel now falls back to the PHAR
method (install a single file, /usr/bin/phpunit, with all classes
packed inside it)." (from the bug report)

Bug: 64597
Change-Id: Ib93b32473ab1a96ea97d90c15fd3675e8ec9843c

tests/phpunit/install-phpunit.sh

index 1f60293..022f998 100755 (executable)
@@ -20,7 +20,8 @@ else if ( has_binary pear ); then
     pear channel-discover components.ez.no
     pear channel-discover pear.symfony.com
     pear update-channels
-    pear install --alldeps phpunit/PHPUnit
+    #Temporary fix for 64597
+    pear install --alldeps phpunit/PHPUnit-3.7.35
 else if ( has_binary apt-get ); then
     echo Installing phpunit with apt-get
     apt-get install phpunit