コード例 #1
0
 /**
  * Returns the symbol corresponding to the given currency
  *
  * @param Currency $currency
  * @return string
  */
 public function symbol(Currency $currency)
 {
     return $this->moneyFormatter->formatCurrencyAsSymbol($currency);
 }
コード例 #2
0
 public function testFormatCurrencyAsSymbol()
 {
     $value = $this->formatter->formatCurrencyAsSymbol($this->inputMoney->getCurrency());
     $this->assertEquals('€', $value);
 }