コード例 #1
0
 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();
 }
コード例 #2
0
 protected function tearDown()
 {
     Localizer::clear();
 }