本文整理汇总了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();
}