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.
1 parent d022058 commit 9ae1957Copy full SHA for 9ae1957
Test/KernelTestCase.php
@@ -157,14 +157,15 @@ protected static function ensureKernelShutdown()
157
if (null !== static::$kernel) {
158
static::$kernel->boot();
159
$container = static::$kernel->getContainer();
160
- static::$kernel->shutdown();
161
- static::$booted = false;
162
163
if ($container->has('services_resetter')) {
164
// Instantiate the service because Container::reset() only resets services that have been used
165
$container->get('services_resetter');
166
}
167
+ static::$kernel->shutdown();
+ static::$booted = false;
168
+
169
if ($container instanceof ResetInterface) {
170
$container->reset();
171
0 commit comments