From d8fb1b97c9593a120b4781ab721f584fe82aa390 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Wed, 23 May 2018 12:38:43 +0200 Subject: [PATCH] Remove reference to the test container after kernel shutdown This reference is not working anymore, as the main container was reset and cleaned. Keeping a reference to the test container will prevent collecting the object graph. --- src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php b/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php index 8dfc292073..351d27900e 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php +++ b/src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php @@ -123,6 +123,7 @@ abstract class KernelTestCase extends TestCase $container->reset(); } } + static::$container = null; } /**