/** * {@inheritdoc} */ public function getCurrencyNames($locale = null) { if (null === $locale) { $locale = \Locale::getDefault(); } $names = parent::getCurrencyNames($locale); $collator = new \Collator($locale); $collator->asort($names); return $names; }
public function testGetRoundingIncrement() { $this->reader->expects($this->once())->method('readEntry')->with(self::RES_DIR, 'en', array('Currencies', 'EUR', 3))->will($this->returnValue(123)); $this->assertSame(123, $this->bundle->getRoundingIncrement('EUR')); }
public function __construct(StructuredBundleReaderInterface $reader) { parent::__construct(realpath(IcuData::getResourceDirectory() . '/curr'), $reader); }