コード例 #1
0
 /**
  * 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();
 }
コード例 #2
0
ファイル: S3Test.php プロジェクト: robertodormepoco/zf2
 /**
  * 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();
 }
コード例 #3
0
 /**
  * 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();
 }
コード例 #4
0
ファイル: NirvanixTest.php プロジェクト: bradley-holt/zf2
 /**
  * Sets up this test case
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->_waitPeriod = 5;
 }