/** * 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); }