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