Beispiel #1
0
 /**
  * @covers ::hasSameCurrencyAs
  */
 public function testHasSameCurrencyAs()
 {
     $this->assertTrue(Money::EUR(1)->hasSameCurrencyAs(Money::EUR(100)));
     $this->assertTrue(Money::EUR(1)->hasSameCurrencyAs(Money::EUR(1)));
     $this->assertFalse(Money::EUR(1)->hasSameCurrencyAs(Money::USD(1)));
 }