/** * Formats only the currency part of the given Money object * * @param Money $money * @return string */ public function formatCurrency($money) { return $this->moneyFormatter->formatCurrency($money); }
public function testFormatCurrency() { $value = $this->formatter->formatCurrency($this->inputMoney); $this->assertEquals('€', $value); }