Example #1
0
 public function testCreateEuroShouldReturnCurrency()
 {
     $currency = Currency::createEuro();
     $this->assertEquals(new Currency(978), $currency);
 }
Example #2
0
 public function testToStringEurosShouldReturnSpeciallyFormattedAmount()
 {
     $currency = Currency::createEuro();
     $money = new Money(123, $currency);
     $this->assertEquals("12300", (string) $money);
 }