We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 784c930 + 25c5f9c commit e5df0a1Copy full SHA for e5df0a1
src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php
@@ -126,14 +126,15 @@ protected static function ensureKernelShutdown()
126
if (null !== static::$kernel) {
127
static::$kernel->boot();
128
$container = static::$kernel->getContainer();
129
- static::$kernel->shutdown();
130
- static::$booted = false;
131
132
if ($container->has('services_resetter')) {
133
// Instantiate the service because Container::reset() only resets services that have been used
134
$container->get('services_resetter');
135
}
136
+ static::$kernel->shutdown();
+ static::$booted = false;
137
+
138
if ($container instanceof ResetInterface) {
139
$container->reset();
140
0 commit comments