public function testGetContentLanguage() { $language = $this->getMockBuilder('\\Language')->disableOriginalConstructor()->getMock(); $instance = new Localizer($language); $this->assertSame($language, $instance->getContentLanguage()); $this->assertSame($GLOBALS['wgContLang'], Localizer::getInstance()->getContentLanguage()); Localizer::clear(); }
protected function tearDown() { Localizer::clear(); }