public function testGetSign() { $SKR = new DBMoney(); $SKR->setValue(array('Currency' => 'SKR', 'Amount' => 3.44)); $this->assertSame('€', $SKR->getSymbol('EUR', 'de_AT')); $this->assertSame(null, $SKR->getSymbol()); try { $SKR->getSymbol('EGP', 'de_XX'); $this->setExpectedException("Exception"); } catch (Exception $e) { } $EUR = new DBMoney(); $EUR->setValue(array('Currency' => 'EUR', 'Amount' => 3.44)); $EUR->setLocale('de_DE'); $this->assertSame('€', $EUR->getSymbol()); }