10000 minor #23893 [HttpKernel] Clean test directory on tear down (nicolas-… · symfony/symfony@0b613db · GitHub
[go: up one dir, main page]

Skip to content

Commit 0b613db

Browse files
minor #23893 [HttpKernel] Clean test directory on tear down (nicolas-grekas)
This PR was merged into the 2.7 branch. Discussion ---------- [HttpKernel] Clean test directory on tear down | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - I've been bitten by this leftover too often. Commits ------- 0a3dc11 [HttpKernel] Clean test directory on tear down
2 parents 993546b + 0a3dc11 commit 0b613db

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)
0