Actualización

This commit is contained in:
Xes
2025-04-10 12:24:57 +02:00
parent 8969cc929d
commit 45420b6f0d
39760 changed files with 4303286 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace Gaufrette\Functional\Adapter;
use Gaufrette\Filesystem;
use Gaufrette\Adapter\SafeLocal;
class SafeLocalTest extends FunctionalTestCase
{
protected function setUp(): void
{
if (!file_exists($this->getDirectory())) {
mkdir($this->getDirectory());
}
$this->filesystem = new Filesystem(new SafeLocal($this->getDirectory()));
}
protected function tearDown(): void
{
foreach ($this->filesystem->keys() as $key) {
$this->filesystem->delete($key);
}
$this->filesystem = null;
rmdir($this->getDirectory());
}
private function getDirectory(): string
{
return sprintf('%s/filesystem', __DIR__);
}
}