From 1cc4bae5f87414c2ac24aa0e4ca185df2148e63c Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 15 Jun 2011 20:51:17 +0000 Subject: [PATCH] Followup to r90090 -- thou shalt add parent:: calls to both overridden tearDown *and* overridden setUp () Had been resulting in fatal errors when running TimeAdjustTest, due to trying to use an old $wgContLang value that had never gotten saved properly because the parent class setUp() was not called. --- tests/phpunit/includes/TimeAdjustTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/phpunit/includes/TimeAdjustTest.php b/tests/phpunit/includes/TimeAdjustTest.php index 3116c19d8e..cd027c5b84 100644 --- a/tests/phpunit/includes/TimeAdjustTest.php +++ b/tests/phpunit/includes/TimeAdjustTest.php @@ -4,6 +4,7 @@ class TimeAdjustTest extends MediaWikiLangTestCase { static $offset; public function setUp() { + parent::setUp(); global $wgLocalTZoffset; self::$offset = $wgLocalTZoffset; -- 2.20.1