Skip to content

Commit 0a3dc11

Browse files
[HttpKernel] Clean test directory on tear down
1 parent 1b9619c commit 0a3dc11

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 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,12 @@
2526

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

0 commit comments

Comments
 (0)