예제 #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);
 }
 public function testFormatMoneyWithCustomSeparators()
 {
     $value = $this->formatter->formatMoney($this->inputMoney, '.', ',');
     $this->assertEquals('1,234,567.89 €', $value);
 }