/** * test getEnvironment * expected true */ public function testLocaleDetail() { $value = new LocaleTestHelper('de_AT'); $this->assertEquals('de', $value->getLanguage()); $this->assertEquals('AT', $value->getRegion()); $value = new LocaleTestHelper('en_US'); $this->assertEquals('en', $value->getLanguage()); $this->assertEquals('US', $value->getRegion()); $value = new LocaleTestHelper('en'); $this->assertEquals('en', $value->getLanguage()); $this->assertFalse($value->getRegion()); }