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 eda025d + 8a792de commit f4c9f5bCopy full SHA for f4c9f5b
Test/KernelTestCase.php
@@ -118,14 +118,15 @@ protected static function ensureKernelShutdown()
118
if (null !== static::$kernel) {
119
static::$kernel->boot();
120
$container = static::$kernel->getContainer();
121
- static::$kernel->shutdown();
122
- static::$booted = false;
123
124
if ($container->has('services_resetter')) {
125
// Instantiate the service because Container::reset() only resets services that have been used
126
$container->get('services_resetter');
127
}
128
+ static::$kernel->shutdown();
+ static::$booted = false;
129
+
130
if ($container instanceof ResetInterface) {
131
$container->reset();
132
0 commit comments