$r =
new \
ReflectionMethod($container, 'getEnv'
);
$r->
setAccessible(true
);
$this->
assertNull($r->
invoke($container, 'FOO'
));
} public function testGetEnvDoesNotAutoCastNullWithEnvVarProcessorsLocatorReturningDefaultEnvVarProcessor() { $container =
new Container();
$container->
setParameter('env(FOO)', null
);
$container->
set('container.env_var_processors_locator',
new ServiceLocator([ 'string' =>
static function D
) use ($container): EnvVarProcessor
{ return new EnvVarProcessor($container);
},
]));
$container->
compile();
$r =
new \
ReflectionMethod($container, 'getEnv'
);
$r->
setAccessible(true
);
$this->
assertNull($r->
invoke($container, 'FOO'
));
}}class ProjectServiceContainer extends Container
{