From 04e5d2941f0bcb393cd6cc9ddecf7a1c41da3539 Mon Sep 17 00:00:00 2001 From: Andreas Hennings Date: Sun, 10 Nov 2024 16:56:44 +0100 Subject: [PATCH] Issue #101: Don't keep container singleton in test. --- tests/src/Fixtures/FixturesUtil.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tests/src/Fixtures/FixturesUtil.php b/tests/src/Fixtures/FixturesUtil.php index a7ec94d..8bb0c13 100644 --- a/tests/src/Fixtures/FixturesUtil.php +++ b/tests/src/Fixtures/FixturesUtil.php @@ -11,11 +11,6 @@ class FixturesUtil { - /** - * @var \Symfony\Component\DependencyInjection\ContainerBuilder - */ - private static ContainerBuilder $container; - /** * Builds a container with services for adaptism tests. * @@ -23,13 +18,6 @@ class FixturesUtil { * New container. */ public static function getContainer(): ContainerBuilder { - return self::$container ??= self::buildContainer(); - } - - /** - * @return \Symfony\Component\DependencyInjection\ContainerBuilder - */ - private static function buildContainer(): ContainerBuilder { $container = new ContainerBuilder(); (new CommonServiceProvider())->register($container); (new EggPackage())->register($container);