protected function tearDown() { if ($this->instance) { $this->instance->rmdir('/'); } parent::tearDown(); }
protected function tearDown() { if ($this->instance) { \OCP\Files::rmdirr($this->instance->constructUrl('')); } parent::tearDown(); }
protected function tearDown() { if ($this->instance) { $connection = $this->instance->getConnection(); $container = $connection->getContainer($this->config['swift']['bucket']); $objects = $container->objectList(); while ($object = $objects->next()) { $object->setName(str_replace('#', '%23', $object->getName())); $object->delete(); } $container->delete(); } parent::tearDown(); }
protected function tearDown() { if ($this->instance) { try { $connection = $this->instance->getConnection(); $container = $connection->getContainer($this->config['bucket']); $objects = $container->objectList(); while ($object = $objects->next()) { $object->setName(str_replace('#', '%23', $object->getName())); $object->delete(); } $container->delete(); } catch (\Guzzle\Http\Exception\ClientErrorResponseException $e) { // container didn't exist, so we don't need to delete it } } parent::tearDown(); }
protected function tearDown() { \OC_Helper::rmdirr($this->tmpDir); parent::tearDown(); }
protected function tearDown() { unlink($this->tmpFile); parent::tearDown(); }