/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ protected function setUp() { parent::setUp(); // set your aws key and secret to your env $this->dsn = 'AmazonSQS://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 AmazonSQS(); $this->object->connect($this->uri, $this->options); while (!is_null($ret = $this->object->peek())) { $this->object->remove(); } }