markTestSkipped('Either RACKSPACE_USER, RACKSPACE_APIKEY and/or RACKSPACE_CONTAINER env vars are missing.'); } $connection = new Rackspace( 'https://identity.api.rackspacecloud.com/v2.0/', [ 'username' => $username, 'apiKey' => $apiKey, ], [ // Guzzle ships with outdated certs // @see https://github.com/rackspace/php-opencloud/issues/727 Rackspace::SSL_CERT_AUTHORITY => 'system', Rackspace::CURL_OPTIONS => [ CURLOPT_SSL_VERIFYPEER => true, CURLOPT_SSL_VERIFYHOST => 2, ], ] ); $this->container = uniqid($container); $this->objectStore = $connection->objectStoreService('cloudFiles', 'IAD', 'publicURL'); $this->objectStore->createContainer($this->container); $adapter = new OpenCloud($this->objectStore, $this->container); $this->filesystem = new Filesystem($adapter); } public function tearDown() { if ($this->filesystem === null) { return; } $this->objectStore->getContainer($this->container)->delete(true); } }