/** * Sets up this test case * * @return void */ public function setUp() { parent::setUp(); // Create 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->createBucket($this->_config->get(Zend_Cloud_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 Zend_Service_Rackspace_Files($this->_config->get(Zend_Cloud_StorageService_Adapter_Rackspace::USER), $this->_config->get(Zend_Cloud_StorageService_Adapter_Rackspace::API_KEY)); $rackspace->createContainer($this->_config->get(Zend_Cloud_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; }