Beispiel #1
0
 /**
  * @covers \Elcodi\Component\Currency\Entity\Money::subtract
  * @covers \Elcodi\Component\Currency\Entity\Money::create
  */
 public function testMethodWillReturnMoneyInstance()
 {
     $fiftyDollars = Money::create(50, $this->currencyMockUSD);
     $this->assertInstanceOf('Elcodi\\Component\\Currency\\Entity\\Money', $this->oneHundredDollars->subtract($fiftyDollars));
     $this->assertInstanceOf('Elcodi\\Component\\Currency\\Entity\\Money', $this->oneHundredDollars->add($fiftyDollars));
 }