From: Trevor Parscal Date: Fri, 3 Sep 2010 00:41:52 +0000 (+0000) Subject: Fixed PHPUnit < 3.5 compatibiliy breaking change r72248, now we automatically use... X-Git-Tag: 1.31.0-rc.0~35206 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=3db985b4d10591a7c51164091733e47fc0a5fcd3;p=lhc%2Fweb%2Fwiklou.git Fixed PHPUnit < 3.5 compatibiliy breaking change r72248, now we automatically use the new/old way by checking for 'PHPUnit/Autoload.php'. --- diff --git a/maintenance/tests/phpunit b/maintenance/tests/phpunit index 073a2e442c..ab13e84a74 100755 --- a/maintenance/tests/phpunit +++ b/maintenance/tests/phpunit @@ -2,7 +2,14 @@ = 3.5 + require_once 'PHPUnit/Autoload.php'; +} else { + // Works for PHPUnit < 3.5 + require_once 'PHPUnit/TextUI/Command'; +} define( 'MW_PHPUNIT_TEST', 1 ); $wgLocaltimezone = 'UTC';