public function testCurrencyBundle() { $bundle = new IcuCurrencyBundle(new StructuredBundleReader(new BinaryBundleReader())); $this->assertSame('€', $bundle->getCurrencySymbol('EUR')); $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 testCurrencyBundle() { $bundle = new IcuCurrencyBundle(new StructuredBundleReader(new PhpBundleReader())); $this->assertSame('€', $bundle->getCurrencySymbol('EUR', 'en')); $this->assertSame(array('en'), $bundle->getLocales()); }