예제 #1
0
 /**
  * Returns the name as string of the given currency
  *
  * @param Currency $currency
  * @return string
  */
 public function name(Currency $currency)
 {
     return $this->moneyFormatter->formatCurrencyAsName($currency);
 }
 public function testFormatCurrencyAsName()
 {
     $value = $this->formatter->formatCurrencyAsName($this->inputMoney->getCurrency());
     $this->assertEquals('EUR', $value);
 }