public function testLanguageBundle() { $bundle = new IcuLanguageBundle(new StructuredBundleReader(new BinaryBundleReader())); $this->assertSame('German', $bundle->getLanguageName('de', null, 'en')); $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 testLanguageBundle() { $bundle = new IcuLanguageBundle(new StructuredBundleReader(new PhpBundleReader())); $this->assertSame('German', $bundle->getLanguageName('de', null, 'en')); }
public function testGetLanguageNameForMultipleLanguages() { $this->reader->expects($this->never())->method('readEntry'); $this->assertNull($this->bundle->getLanguageName('mul', 'en')); }