예제 #1
0
 /**
  * Sets up this test case
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     // Create the bucket here
     $s3 = new AmazonS3($this->_config->get(\ZendCloud\StorageService\Adapter\S3::AWS_ACCESS_KEY), $this->_config->get(\ZendCloud\StorageService\Adapter\S3::AWS_SECRET_KEY));
     $s3->createBucket($this->_config->get(\ZendCloud\StorageService\Adapter\S3::BUCKET_NAME));
 }
예제 #2
0
 /**
  * Sets up this test case
  *
  * @return void
  */
 public function setUp()
 {
     if (!constant('TESTS_ZEND_SERVICE_RACKSPACE_ONLINE_ENABLED')) {
         $this->markTestSkipped('Rackspace online tests are not enabled');
     }
     parent::setUp();
     $this->_waitPeriod = 5;
     // Create the container here
     $rackspace = new RackspaceService($this->_config->get(\ZendCloud\StorageService\Adapter\Rackspace::USER), $this->_config->get(\ZendCloud\StorageService\Adapter\Rackspace::API_KEY));
     $rackspace->createContainer($this->_config->get(\ZendCloud\StorageService\Adapter\Rackspace::REMOTE_CONTAINER));
 }
예제 #3
0
 /**
  * Sets up this test case
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     // No need to wait
     $this->_waitPeriod = 0;
     $path = $this->_config->local_directory;
     // If the test directory exists, remove it and replace it
     if (file_exists($path)) {
         $this->_rmRecursive($path);
     }
     mkdir($path, 0755);
 }
예제 #4
0
 /**
  * Sets up this test case
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     $this->_waitPeriod = 5;
 }