Ejemplo n.º 1
0
 /**
  * Formats the given Money object
  * INCLUDING the currency symbol
  *
  * @param Money  $money
  * @param string $decPoint
  * @param string $thousandsSep
  *
  * @return string
  */
 public function format(Money $money, $decPoint = ',', $thousandsSep = ' ')
 {
     return $this->moneyFormatter->formatMoney($money, $decPoint, $thousandsSep);
 }
Ejemplo n.º 2
0
 public function testFormatMoneyWithCustomSeparators()
 {
     $value = $this->formatter->formatMoney($this->inputMoney, '.', ',');
     $this->assertEquals('1,234,567.89 €', $value);
 }