예제 #1
0
 public function testCreateEuroShouldReturnCurrency()
 {
     $currency = Currency::createEuro();
     $this->assertEquals(new Currency(978), $currency);
 }
예제 #2
0
파일: MoneyTest.php 프로젝트: rmhdev/redsys
 public function testToStringEurosShouldReturnSpeciallyFormattedAmount()
 {
     $currency = Currency::createEuro();
     $money = new Money(123, $currency);
     $this->assertEquals("12300", (string) $money);
 }