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