8000 [FrameworkBundle] ensureKernelShutdown in tearDownAfterClass · symfony/symfony@c193b98 · GitHub
[go: up one dir, main page]

Skip to content

Commit c193b98

Browse files
cquintana92nicolas-grekas
authored andcommitted
[FrameworkBundle] ensureKernelShutdown in tearDownAfterClass
1 parent 0291ea1 commit c193b98

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ protected function tearDown(): void
4545
static::$booted = false;
4646
}
4747

48+
public static function tearDownAfterClass(): void
49+
{
50+
static::ensureKernelShutdown();
51+
static::$class = null;
52+
static::$kernel = null;
53+
static::$booted = false;
54+
}
55+
4856
/**
4957
* @throws \RuntimeException
5058
* @throws \LogicException

0 commit comments

Comments
 (0)
0