Пример #1
0
 public function testCreateWithCustomlySetDefaultPrecision()
 {
     Currency::$currencyPrecisions = array("EUR" => 3);
     $this->assertSame(3, Currency::getDefaultPrecision("EUR"));
     $eur = new Currency("EUR");
     $this->assertSame(3, $eur->getPrecision());
 }
Пример #2
0
 public function setUp()
 {
     Currency::$currencyPrecisions = (include __DIR__ . "/../precisions.php");
 }