public function testCreateWithDefaultPrecision() { $eur = new Currency("EUR"); $this->assertSame("EUR", $eur->getCode()); $this->assertSame(Currency::getDefaultPrecision("EUR"), $eur->getPrecision()); }
/** * Checks if the Currency is equal to the given one * * @param Currency $other * * @return boolean */ public function isEqualTo(Currency $other) { return $other->getCode() === $this->code; }