From 3db985b4d10591a7c51164091733e47fc0a5fcd3 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Fri, 3 Sep 2010 00:41:52 +0000 Subject: [PATCH] Fixed PHPUnit < 3.5 compatibiliy breaking change r72248, now we automatically use the new/old way by checking for 'PHPUnit/Autoload.php'. --- maintenance/tests/phpunit | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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'; -- 2.20.1