Example #1
0
 public function testSubtractingDifferentCurrenciesThrowsException()
 {
     $first = new Money(10, 'USD');
     $second = new Money(20, 'GBP');
     $this->expectException(DomainException::class);
     $first->sub($second);
 }