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