public function testLocaleBundle()
 {
     $bundle = new IcuLocaleBundle(new StructuredBundleReader(new BinaryBundleReader()));
     $this->assertSame('azéri', $bundle->getLocaleName('az', 'fr'));
     $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());
 }
Exemplo n.º 2
0
 public function testLocaleBundle()
 {
     $bundle = new IcuLocaleBundle(new StructuredBundleReader(new PhpBundleReader()));
     $this->assertSame('Azerbaijani', $bundle->getLocaleName('az', 'en'));
 }
 public function testLocaleBundle()
 {
     $bundle = new IcuLocaleBundle(new StructuredBundleReader(new BinaryBundleReader()));
     $this->assertSame('azéri', $bundle->getLocaleName('az', 'fr'));
 }