public function testAmount() { $amount = new Amount(100); $currency = Currency::EUR(); $money = new Money($amount, $currency); $this->assertTrue($money->amount()->sameValueAs(new Amount(100))); }
public function sameCurrencyOf(MoneyInterface $money) { return $this->currency->sameValueAs($money->currency()); }