Example #1
0
 /**
  * @ZF-9519
  */
 public function testSetValueWithoutLocale()
 {
     $currency = new Currency\Currency('RUB', 'ru_RU');
     require_once __DIR__ . '/ExchangeTest.php';
     $this->assertEquals(null, $currency->getService());
     $currency->setService(new ExchangeTest());
     $this->assertTrue($currency->getService() instanceof Currency\CurrencyService);
     $currency->setValue(100, 'USD');
     $this->assertEquals(50, $currency->getValue());
     $this->assertEquals('RUB', $currency->getShortName());
 }