/** * Testing value at initiation */ public function testValueWithConstructor() { $currency = new Currency\Currency(array('currency' => 'EUR', 'locale' => 'de_AT', 'value' => 100)); $this->assertEquals('de_AT', $currency->getLocale()); $this->assertEquals('EUR', $currency->getShortName()); $this->assertEquals('€ 100,00', $currency->toCurrency()); }