public function tearDown() { unset($this->_amazon->debug); $this->_amazon->cleanBucket($this->_bucket); $this->_amazon->removeBucket($this->_bucket); sleep(1); }
public function tearDown() { if (!constant('TESTS_ZEND_SERVICE_AMAZON_ONLINE_ENABLED')) { return; } unset($this->_amazon->debug); $this->_amazon->cleanBucket($this->_bucket); $this->_amazon->removeBucket($this->_bucket); }
/** * Tears down this test case * * @return void */ public function tearDown() { if (!$this->_config) { return; } // Delete the bucket here $s3 = new Zend_Service_Amazon_S3($this->_config->get(Zend_Cloud_StorageService_Adapter_S3::AWS_ACCESS_KEY), $this->_config->get(Zend_Cloud_StorageService_Adapter_S3::AWS_SECRET_KEY)); $s3->removeBucket($this->_config->get(Zend_Cloud_StorageService_Adapter_S3::BUCKET_NAME)); parent::tearDown(); }