protected function __construct() { $this->config = $this->validateConfig(Config::getAkamaiConfig()); $this->key = $this->config['AKAMAI_KEY']; $this->key_name = $this->config['AKAMAI_KEYNAME']; $this->host = $this->config['AKAMAI_HOST']; $this->auth = new AkamaiAuth($this->key, $this->key_name); // $this->version = $this->config->version; }
public function __CONSTRUCT($duration) { $this->config = Config::getAkamaiConfig(); $this->setOptions($duration); }
public function testDotEnvException() { $this->expectException('\\Akamai\\Exceptions\\DotEnvException'); Config::loadFromENV('./tests/', 'invalid.configuration.file'); }