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