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