public function testGetFxRates() { $fxRates = $this->client->getFxRates(); $this->assert($fxRates, is_an_array); $this->assert($fxRates[0], instance_of, '\\IndependentReserve\\Object\\FxRate'); $this->verify(strlen($fxRates[0]->getCurrencyCodeA()), equals, 3); $this->verify(strlen($fxRates[0]->getCurrencyCodeB()), equals, 3); $this->verify($fxRates[0]->getRate(), greater_than, 0); $this->assert($fxRates[1], instance_of, '\\IndependentReserve\\Object\\FxRate'); $this->verify(strlen($fxRates[1]->getCurrencyCodeA()), equals, 3); $this->verify(strlen($fxRates[1]->getCurrencyCodeB()), equals, 3); $this->verify($fxRates[1]->getRate(), greater_than, 0); }
/** * @param string $apiKey * @param string $apiSecret */ public function __construct($apiKey, $apiSecret) { parent::__construct(); $this->apiKey = $apiKey; $this->apiSecret = $apiSecret; }