public function testCurrencyWhenMaxIsNull() { $range = new MoneyRange(Money::USD(123.45), null); $this->assertEquals('USD', $range->currency()); }
public function testStaticFactoryWithScale() { $money = Money::USD(123.45678, 2); $this->assertEquals(123.46, $money->amount()); $this->assertEquals('USD', $money->currency()); }