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