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')); }
public function testGetCurrencySymbol() { $this->reader->expects($this->once())->method('readEntry')->with($this->resDir, 'en', array('Currencies', 'EUR', 0))->will($this->returnValue('€')); $this->assertSame('€', $this->bundle->getCurrencySymbol('EUR', 'en')); }