Example #1
0
 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;
 }
Example #2
0
 public function __CONSTRUCT($duration)
 {
     $this->config = Config::getAkamaiConfig();
     $this->setOptions($duration);
 }
Example #3
0
 public function testDotEnvException()
 {
     $this->expectException('\\Akamai\\Exceptions\\DotEnvException');
     Config::loadFromENV('./tests/', 'invalid.configuration.file');
 }