Exemplo n.º 1
0
 /**
  * Multiply values
  */
 public function testMulValues()
 {
     $currency = new Currency\Currency(array('currency' => 'EUR', 'locale' => 'de_AT'));
     $currency->add(100);
     $currency->mul(2);
     $this->assertEquals('€ 200,00', $currency->toCurrency());
     $currency->mul(2)->mul(2);
     $this->assertEquals('€ 800,00', $currency->toCurrency());
 }