Exemple #1
0
 /**
  * Gets tax value between net and gross price
  * @return Money
  */
 public function getTaxValue()
 {
     return $this->grossPrice->subtract($this->netPrice);
 }
Exemple #2
0
 /**
  * @dataProvider getCurrencyMismatchData
  * @expectedException \Nilz\Money\Exception\CurrencyMismatchException
  */
 public function testSubtractWithDifferentCurrenciesFails(Money $minuend, Money $subtrahend)
 {
     $minuend->subtract($subtrahend);
 }