Ejemplo n.º 1
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  */
 protected function setUp()
 {
     parent::setUp();
     $this->object = new AmazonDynamoDB();
     // set your aws key and secret to your env
     $this->dsn = 'AmazonDynamoDB://REGION_' . $_SERVER['AWS_REGION_NAME'] . '/tests';
     $this->uri = $_SERVER['AWS_REGION_NAME'] . '/tests';
     $this->options = array('key' => $_SERVER['AWS_ACCESS_KEY'], 'secret' => $_SERVER['AWS_SECRET_KEY'], 'default_cache_config' => '', 'certificate_autority' => false);
     // curl options
     $this->options['curlopts'] = array(CURLOPT_SSL_VERIFYPEER => false);
     $this->object = new AmazonDynamoDB();
     $this->object->connect($this->uri, $this->options);
 }