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 f40274b + 9ae1957 commit 6a9665bCopy full SHA for 6a9665b
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