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