コード例 #1
0
ファイル: OnlineTest.php プロジェクト: jsnshrmn/Suma
 public function tearDown()
 {
     unset($this->_amazon->debug);
     $this->_amazon->cleanBucket($this->_bucket);
     $this->_amazon->removeBucket($this->_bucket);
     sleep(1);
 }
コード例 #2
0
ファイル: OnlineTest.php プロジェクト: navassouza/zf2
 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);
 }
コード例 #3
0
ファイル: S3Test.php プロジェクト: jsnshrmn/Suma
 /**
  * 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();
 }