File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/Symfony/Component/DependencyInjection/Tests Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -673,6 +673,8 @@ public function testCompileWithArrayResolveEnv()
673
673
$ container ->setParameter ('foo ' , '%env(json:ARRAY)% ' );
674
674
$ container ->compile (true );
675
675
676
+ $ this ->assertSame (['foo ' => 'bar ' ], $ container ->getParameter ('foo ' ));
677
+
676
678
putenv ('ARRAY ' );
677
679
}
678
680
@@ -686,6 +688,9 @@ public function testCompileWithArrayAndAnotherResolveEnv()
686
688
$ container ->setParameter ('bar ' , '%env(DUMMY_ENV_VAR)% ' );
687
689
$ container ->compile (true );
688
690
691
+ $ this ->assertSame (['foo ' => 'bar ' ], $ container ->getParameter ('foo ' ));
692
+ $ this ->assertSame ('abc ' , $ container ->getParameter ('bar ' ));
693
+
689
694
putenv ('DUMMY_ENV_VAR ' );
690
695
putenv ('ARRAY ' );
691
696
}
You can’t perform that action at this time.
0 commit comments