Beispiel #1
0
 /**
  * @covers \Elcodi\Component\Currency\Entity\Money::subtract
  */
 public function testSubtractMoney()
 {
     $oneHundredFiftyDollars = Money::create(150, $this->currencyMockUSD);
     $this->assertEquals(-50, $this->oneHundredDollars->subtract($oneHundredFiftyDollars)->getAmount());
 }