Exemplo n.º 1
0
 public function testConstructionWithStringValueAndCurrency()
 {
     $money = new Money('123.45', 'USD');
     $this->assertEquals(123.45, $money->amount());
     $this->assertEquals('USD', $money->currency());
 }