Exemplo n.º 1
0
 protected function tearDown()
 {
     if ($this->instance) {
         $this->instance->rmdir('/');
     }
     parent::tearDown();
 }
Exemplo n.º 2
0
 protected function tearDown()
 {
     if ($this->instance) {
         \OCP\Files::rmdirr($this->instance->constructUrl(''));
     }
     parent::tearDown();
 }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 4
0
 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();
 }
Exemplo n.º 5
0
	protected function tearDown() {
		\OC_Helper::rmdirr($this->tmpDir);
		parent::tearDown();
	}
Exemplo n.º 6
0
 protected function tearDown()
 {
     unlink($this->tmpFile);
     parent::tearDown();
 }