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