public function testGetCurrentLocale() { $availableLocales = ['en', 'fr']; $defaultLocale = 'en'; $localizer = new Localizer($availableLocales, $defaultLocale); $this->assertEquals('en', $localizer->getCurrentLocale()); $localizer->setCurrentLocale('fr'); $this->assertEquals('fr', $localizer->getCurrentLocale()); $localizer->setCurrentLocale(''); $this->assertEquals('fr', $localizer->getCurrentLocale()); }