public function testCircularEnvLoader() { $container =
new ContainerBuilder();
$container->
setParameter('env(FOO_CONTAINER)', 'foo'
);
$container->
compile();
$index = 0;
$loaders =
function D
) use (&
$index) { if (0 ===
$index++
) { throw new ParameterCircularReferenceException(['FOO_CONTAINER'
]);
} yield new class() implements EnvVarLoaderInterface
{ public function loadEnvVars(): array
{ return [ 'FOO_ENV_LOADER' => '123',
];
} };
};