public function testGetName() { $m = new DBMoney(); $m->setValue(array('Currency' => 'EUR', 'Amount' => 3.44)); $m->setLocale('ar_EG'); $this->assertSame('Estnische Krone', $m->getCurrencyName('EEK', 'de_AT')); $this->assertSame('يورو', $m->getCurrencyName()); try { $m->getCurrencyName('EGP', 'xy_XY'); $this->setExpectedException("Exception"); } catch (Exception $e) { } }