Example #1
0
 public function testFromCountryCode()
 {
     $locale = CULocale::fromCountryCode("DE");
     $this->assertTrue($locale->name()->equals("de_DE"));
     $locale = CULocale::fromCountryCode("de");
     $this->assertTrue($locale->name()->equals("de_DE"));
     $locale = CULocale::fromCountryCode("US");
     $this->assertTrue($locale->name()->equals("en_US"));
     $locale = CULocale::fromCountryCode("GB");
     $this->assertTrue($locale->name()->equals("en_GB"));
 }