public function testRegionBundle() { $bundle = new IcuRegionBundle(new StructuredBundleReader(new BinaryBundleReader())); $this->assertSame('Vereinigtes Königreich', $bundle->getCountryName('GB', 'de')); $this->assertContains('en_GB', $bundle->getLocales()); $this->assertContains('mo', $bundle->getLocales()); $this->assertContains('ro_MD', $bundle->getLocales()); $this->assertNotContains('root', $bundle->getLocales()); $this->assertNotContains('supplementalData', $bundle->getLocales()); $this->assertNotContains('supplementaldata', $bundle->getLocales()); $this->assertNotContains('misc', $bundle->getLocales()); }
public function testRegionBundle() { $bundle = new IcuRegionBundle(new StructuredBundleReader(new PhpBundleReader())); $this->assertSame('United Kingdom', $bundle->getCountryName('GB', 'en')); }
public function testGetCountryNameOfNumericalRegionWithLeadingZero() { $this->reader->expects($this->never())->method('readEntry'); $this->assertNull($this->bundle->getCountryName('010', 'en')); }
public function testRegionBundle() { $bundle = new IcuRegionBundle(new StructuredBundleReader(new BinaryBundleReader())); $this->assertSame('Vereinigtes Königreich', $bundle->getCountryName('GB', 'de')); }