8000 [HttpKernel] Clean test directory on tear down · symfony/symfony@592cad8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 592cad8

Browse files
[HttpKernel] Clean te 8000 st directory on tear down
1 parent 1b9619c commit 592cad8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Symfony/Component/HttpKernel/Tests/KernelTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\Component\DependencyInjection\ContainerBuilder;
16+
use Symfony\Component\Filesystem\Filesystem;
1617
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
1718
use Symfony\Component\HttpKernel\Config\EnvParametersResource;
1819
use Symfony\Component\HttpKernel\Kernel;
@@ -25,6 +26,11 @@
2526

2627
class KernelTest extends TestCase
2728
{
29+
public static function tearDownAfterClass()
30+
{
31+
(new Filesystem())->remove(__DIR__.'/Fixtures/cache');
32+
}
33+
2834
public function testConstructor()
2935
{
3036
$env = 'test_env';

0 commit comments

Comments
 (0)
0