/**
  * {@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'));
 }
Exemple #3
0
 public function __construct(StructuredBundleReaderInterface $reader)
 {
     parent::__construct(realpath(IcuData::getResourceDirectory() . '/curr'), $reader);
 }