|
@@ 81-92 (lines=12) @@
|
| 78 |
|
$this->assertValidApiRatesResponseFormat($apiResponse); |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
public function testGetHistoricalWithInvalidAppId() |
| 82 |
|
{ |
| 83 |
|
$histDate = new \DateTime(); |
| 84 |
|
$histDate->modify('-7 days'); |
| 85 |
|
|
| 86 |
|
$client = new Client(); |
| 87 |
|
$client->setAppId('test'); |
| 88 |
|
|
| 89 |
|
$apiResponse = $client->getHistorical($histDate); |
| 90 |
|
|
| 91 |
|
$this->assertInvalidApiResponseFormat($apiResponse); |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
public function testGetHistoricalWithValidAppId() |
| 95 |
|
{ |
|
@@ 94-105 (lines=12) @@
|
| 91 |
|
$this->assertInvalidApiResponseFormat($apiResponse); |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
public function testGetHistoricalWithValidAppId() |
| 95 |
|
{ |
| 96 |
|
$histDate = new \DateTime(); |
| 97 |
|
$histDate->modify('-7 days'); |
| 98 |
|
|
| 99 |
|
$client = new Client(); |
| 100 |
|
$client->setAppId($this->appId); |
| 101 |
|
|
| 102 |
|
$apiResponse = $client->getHistorical($histDate); |
| 103 |
|
|
| 104 |
|
$this->assertValidApiRatesResponseFormat($apiResponse); |
| 105 |
|
} |
| 106 |
|
|
| 107 |
|
public function testGetHistoricalWithInvalidDate() |
| 108 |
|
{ |