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