Example #1
0
 /**
  * @test
  */
 public function itShouldReturnAnArrayOfCurrencyCodes()
 {
     $this->assertNotEmpty(Currency::availableCurrencyCodes());
 }
 /**
  * @param Currency $currency
  *
  * @return float
  */
 private function getRatioFromCurrency(Currency $currency)
 {
     $this->calculateRatesBasedOnUSDollars();
     return (double) $this->ratesData[$currency->code()];
 }