From 4742232b0d27a91c92d481afe9a222bcf9c69851 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 3 May 2013 21:45:06 +0200 Subject: [PATCH] Fix bootstrap in unit tests - Remove check for version, that version is already enforced in phpunit.php, so there is not point showing a warning for it is useless - Remove call to MessageCache::destroyInstance(), there is no need for it, since $wgMessageCacheType is set in phpunit.php before running Setup.php - Remove includes of bootstrap.php in LanguageSrTest.php and LanguageUzTest.php Change-Id: I4b2db6b3e6f001175e1a407c5add2972aade5e60 --- tests/phpunit/bootstrap.php | 17 ----------------- tests/phpunit/languages/LanguageSrTest.php | 2 -- tests/phpunit/languages/LanguageUzTest.php | 2 -- 3 files changed, 21 deletions(-) diff --git a/tests/phpunit/bootstrap.php b/tests/phpunit/bootstrap.php index 3978b8df8e..ea8387c52f 100644 --- a/tests/phpunit/bootstrap.php +++ b/tests/phpunit/bootstrap.php @@ -13,20 +13,3 @@ Running phpunit.php instead is recommended. EOF; require_once( __DIR__ . "/phpunit.php" ); } - -// Output a notice when running with older versions of PHPUnit -if ( version_compare( PHPUnit_Runner_Version::id(), "3.6.7", "<" ) ) { - echo <<