public function testMinimumSetup()
 {
     $settings = new Settings();
     $settings->setApiKey('953ca95742ee4fd6aab51c3d95c02a2d');
     $client = new Client($settings);
     $log = new Log();
     $log->setLogLevel('ERROR');
     $log->setMessage('Very bad error');
     $client->addLog($log);
     $this->assertTrue($client->sendLogs());
 }
 public function __construct($config, Exception $exception)
 {
     //Set settings
     $settings = new Settings();
     $settings->setApiKey($config['api_key']);
     $settings->setScheme($config['scheme']);
     $settings->setVersion($config['version']);
     $this->settings = $settings;
     $this->config = $config;
     $this->exception = $exception;
     $this->_processException();
 }
 /**
  * @param \AppEnlight\Endpoint $endpoint
  * @return type
  */
 public function buildUrl(Endpoint $endpoint)
 {
     $scheme = $this->_settings->getScheme();
     $url = $this->_settings->getUrl();
     $version = $this->_settings->getVersion();
     return "{$scheme}://{$url}/{$endpoint->getUrlEndpoint()}?protocol_version={$version}";
 }