本文整理匯總了PHP中Storage::tearDown方法的典型用法代碼示例。如果您正苦於以下問題:PHP Storage::tearDown方法的具體用法?PHP Storage::tearDown怎麽用?PHP Storage::tearDown使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Storage
的用法示例。
在下文中一共展示了Storage::tearDown方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: tearDown
protected function tearDown()
{
if ($this->instance) {
$this->instance->rmdir('/');
}
parent::tearDown();
}
示例2: tearDown
protected function tearDown()
{
if ($this->instance) {
\OCP\Files::rmdirr($this->instance->constructUrl(''));
}
parent::tearDown();
}
示例3: 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();
}
示例4: 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();
}
示例5: tearDown
protected function tearDown() {
\OC_Helper::rmdirr($this->tmpDir);
parent::tearDown();
}
示例6: tearDown
protected function tearDown()
{
unlink($this->tmpFile);
parent::tearDown();
}