예제 #1
0
 /**
  * @expectedException InvalidArgumentException
  */
 public function testReduceSumInvalidBank()
 {
     $francs = $this->bank->createMoney(10, 'CHF');
     $dollars = $this->bank->createMoney(10, 'USD');
     $francs->plus($dollars)->reduce();
 }
예제 #2
0
 /**
  * @expectedException \Dough\Exception\InvalidCurrencyException
  */
 public function testCreateMoneyUnknownCurrency()
 {
     $this->bank->createMoney(10, 'XSF');
 }