public function testToCurrency() { $USD = new DBMoney(); $USD->setLocale('en_US'); $USD->setAmount(53292.18); $this->assertSame('$53,292.18', $USD->Nice()); $this->assertSame('$ 53.292,18', $USD->Nice(array('format' => 'de_AT'))); }