public function testMonthNameLocale() { $_SERVER['HTTP_ACCEPT_LANGUAGE'] = "en-US,de-DE,de-AT"; $this->assertSame('Januar', LocaleUtil::getMonthNameByMonthId(1, "de", true)); $this->assertSame('January', LocaleUtil::getMonthNameByMonthId(1, "en", true)); $this->assertSame('Feb', LocaleUtil::getMonthNameByMonthId(2, "de", false)); $this->assertSame('Feb', LocaleUtil::getMonthNameByMonthId(2, "en", false)); $this->assertSame('Mär', LocaleUtil::getMonthNameByMonthId(3, "de", false)); $this->assertSame('Mar', LocaleUtil::getMonthNameByMonthId(3, "en", false)); }