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 fc0062e commit 776af3eCopy full SHA for 776af3e
Test/KernelTestCase.php
@@ -11,6 +11,7 @@
11
12
namespace Symfony\Bundle\FrameworkBundle\Test;
13
14
+use Symfony\Component\DependencyInjection\ResettableContainerInterface;
15
use Symfony\Component\Finder\Finder;
16
use Symfony\Component\HttpKernel\KernelInterface;
17
@@ -171,7 +172,11 @@ protected static function createKernel(array $options = array())
171
172
protected static function ensureKernelShutdown()
173
{
174
if (null !== static::$kernel) {
175
+ $container = static::$kernel->getContainer();
176
static::$kernel->shutdown();
177
+ if ($container instanceof ResettableContainerInterface) {
178
+ $container->reset();
179
+ }
180
}
181
182
0 commit comments