/**
  * Tears down this test case
  *
  * @return void
  */
 public function tearDown()
 {
     $path = $this->_config->local_directory;
     // If the test directory exists, remove it
     if (file_exists($path)) {
         $this->_rmRecursive($path);
     }
     parent::tearDown();
 }
Exemple #2
0
 /**
  * Tears down this test case
  *
  * @return void
  */
 public function tearDown()
 {
     if (!$this->_config) {
         return;
     }
     // Delete the bucket here
     $s3 = new AmazonS3($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();
 }
 /**
  * Tears down this test case
  *
  * @return void
  */
 public function tearDown()
 {
     if (!$this->_config) {
         return;
     }
     // Delete the container here
     $rackspace = new RackspaceService($this->_config->get(\Zend\Cloud\StorageService\Adapter\Rackspace::USER), $this->_config->get(\Zend\Cloud\StorageService\Adapter\Rackspace::API_KEY));
     $files = $rackspace->getObjects($this->_config->get(\Zend\Cloud\StorageService\Adapter\Rackspace::REMOTE_CONTAINER));
     if ($files == !false) {
         foreach ($files as $file) {
             $rackspace->deleteObject($this->_config->get(\Zend\Cloud\StorageService\Adapter\Rackspace::REMOTE_CONTAINER), $file->getName());
         }
     }
     $rackspace->deleteContainer($this->_config->get(\Zend\Cloud\StorageService\Adapter\Rackspace::REMOTE_CONTAINER));
     parent::tearDown();
 }
Exemple #4
0
 /**
  * Sets up this test case
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->_waitPeriod = 5;
 }