/** * 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)); }
/** * 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)); }
/** * 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); }
/** * Sets up this test case * * @return void */ public function setUp() { parent::setUp(); $this->_waitPeriod = 5; }