Exemplo n.º 1
0
 public function testShouldSetAndGetThousandsSeparator()
 {
     $expected = '#';
     $config = new MoneyConfig();
     $config->setThousandsSeparator($expected);
     $result = $config->getThousandsSeparator();
     $this->assertEquals($expected, $result);
 }
Exemplo n.º 2
0
 public function __toString()
 {
     return $this->config->getMoneySymbol() . ' ' . number_format($this->value, 2, $this->config->getDecimalPoint(), $this->config->getThousandsSeparator());
 }