mockConfig = new uConfig(false); } public function testGetLanguages() { $languages = uLang::getLanguages(); $this->assertNotEmpty($languages); $this->assertArrayHasKey("en", $languages); $this->assertArrayHasKey("pl", $languages); $this->assertEquals("English", $languages["en"]); $this->assertEquals("Polski", $languages["pl"]); } public function testGetStrings() { $lang = new uLang($this->mockConfig); $this->assertEquals("User", $lang->getStrings()["user"]); $this->mockConfig->lang = "pl"; $lang = new uLang($this->mockConfig); $this->assertEquals("Użytkownik", $lang->getStrings()["user"]); } public function testGetSetupStrings() { $lang = new uLang($this->mockConfig); $this->assertEquals("Congratulations!", $lang->getSetupStrings()["congratulations"]); $this->mockConfig->lang = "pl"; $lang = new uLang($this->mockConfig); $this->assertEquals("Gratulacje!", $lang->getSetupStrings()["congratulations"]); } } ?>