use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Finder\Finder;
class CacheClearCommandTest extends TestCase
{ private TestAppKernel
$kernel;
private Filesystem
$fs;
protected function setUp(): void
{ $this->fs =
new Filesystem();
$this->kernel =
new TestAppKernel('test', true
);
$this->fs->
mkdir($this->kernel->
getProjectDir());
} protected function tearDown(): void
{ try { $this->fs->
remove($this->kernel->
getProjectDir());
} catch (IOException
$e) { } }