/** * Formats the amount part of the given Money object * WITHOUT INCLUDING the currency symbol * * @param Money $money * @param string $decPoint * @param string $thousandsSep * * @return string */ public function formatAmount(Money $money, $decPoint = ',', $thousandsSep = ' ') { return $this->moneyFormatter->formatAmount($money, $decPoint, $thousandsSep); }
public function testFormatAmountWithCustomSeparators() { $value = $this->formatter->formatAmount($this->inputMoney, '.', ','); $this->assertEquals('1,234,567.89', $value); }