コード例 #1
0
 public function testShouldSetAndGetThousandsSeparator()
 {
     $expected = '#';
     $config = new MoneyConfig();
     $config->setThousandsSeparator($expected);
     $result = $config->getThousandsSeparator();
     $this->assertEquals($expected, $result);
 }
コード例 #2
0
ファイル: Money.php プロジェクト: asanoturna/SimpleFinance
 public function __toString()
 {
     return $this->config->getMoneySymbol() . ' ' . number_format($this->value, 2, $this->config->getDecimalPoint(), $this->config->getThousandsSeparator());
 }