Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 public function testFormatAmountWithCustomSeparators()
 {
     $value = $this->formatter->formatAmount($this->inputMoney, '.', ',');
     $this->assertEquals('1,234,567.89', $value);
 }