From e3938d18a36421446d81ef1f4570fc4e5ebc802d Mon Sep 17 00:00:00 2001 From: Platonides Date: Tue, 26 Oct 2010 13:54:47 +0000 Subject: [PATCH] Follow up r75245. Fix PHP Fatal error: Call to a member function ucfirst() on a non-object --- maintenance/tests/phpunit/includes/SampleTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/maintenance/tests/phpunit/includes/SampleTest.php b/maintenance/tests/phpunit/includes/SampleTest.php index 112e8b5a14..59857d958d 100644 --- a/maintenance/tests/phpunit/includes/SampleTest.php +++ b/maintenance/tests/phpunit/includes/SampleTest.php @@ -6,6 +6,9 @@ class TestSample extends PHPUnit_Framework_TestCase { * Anything that needs to happen before your tests should go here. */ function setUp() { + global $wgContLang; + /* For example, we need to set $wgContLang for creating a new Title */ + $wgContLang = Language::factory( 'en' ); } /** -- 2.20.1