/** * @param array $result * @return array * @throws NotFoundException */ protected function formatResult($result) { $result = parent::formatResult($result); if (!isset($result['rates'])) { throw new NotFoundException('Rates Not Found'); } return $result['rates']; }
public function testGetHttpClient() { $result = $this->httpMapper->getHttpClient(); $this->assertInstanceOf('GuzzleHttp\\Client', $result); }