示例#1
0
 protected function tearDown()
 {
     if ($this->instance) {
         $this->instance->rmdir('/');
     }
     parent::tearDown();
 }
示例#2
0
 protected function tearDown()
 {
     if ($this->instance) {
         \OCP\Files::rmdirr($this->instance->constructUrl(''));
     }
     parent::tearDown();
 }
示例#3
0
文件: swift.php 项目: samj1912/repo
 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();
 }
示例#4
0
文件: swift.php 项目: loulancn/core
 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();
 }
示例#5
0
	protected function tearDown() {
		\OC_Helper::rmdirr($this->tmpDir);
		parent::tearDown();
	}
示例#6
0
 protected function tearDown()
 {
     unlink($this->tmpFile);
     parent::tearDown();
 }