Пример #1
0
 /**
  * Divide values
  */
 public function testDivValues()
 {
     $currency = new Currency\Currency(array('currency' => 'EUR', 'locale' => 'de_AT'));
     $currency->add(800);
     $currency->div(2);
     $this->assertEquals('€ 400,00', $currency->toCurrency());
     $currency->div(2)->div(2);
     $this->assertEquals('€ 100,00', $currency->toCurrency());
 }