/**
  * OnlineConvertClient constructor.
  *
  * @param Configuration $configuration
  * @param               $apiKeyPrefix
  * @param null|string   $host
  */
 public function __construct(Configuration $configuration, $apiKeyPrefix = null, $host = null)
 {
     $this->config = $configuration;
     if ($this->config->https) {
         $this->host = Resources::HTTPS_HOST;
         $config['verify'] = false;
     } else {
         $this->host = Resources::HTTP_HOST;
     }
     if ($host) {
         $this->host = $host;
     }
     if ($apiKeyPrefix) {
         $this->apiKey = $this->config->getApiKey($apiKeyPrefix);
         $this->setHeader(self::HEADER_OC_API_KEY, $this->apiKey);
     }
     $config['base_uri'] = $this->host;
     $config['headers'] = $this->defaultHeader;
     $this->client = new Client($config);
 }
 public function setUp()
 {
     $this->config = new Configuration();
     $this->config->setApiKey('main', 'some_key');
     $this->client = new OnlineConvertClient($this->config, 'main');
 }