@@ -99,7 +99,7 @@ public function testLoadParameters()
99
99
$ loader ->load ('services2.xml ' );
100
100
101
101
$ actual = $ container ->getParameterBag ()->all ();
102
- $ expected = array ('a string ' , 'foo ' => 'bar ' , 'values ' => array (0 , 'integer ' => 4 , 100 => null , 'true ' , true , false , 'on ' , 'off ' , 'float ' => 1.3 , 1000.3 , 'a string ' , array ('foo ' , 'bar ' )), 'foo_bar ' => new Reference ( ' foo_bar ' ), ' mixedcase ' => array ('MixedCaseKey ' => 'value ' ));
102
+ $ expected = array ('a string ' , 'foo ' => 'bar ' , 'values ' => array (0 , 'integer ' => 4 , 100 => null , 'true ' , true , false , 'on ' , 'off ' , 'float ' => 1.3 , 1000.3 , 'a string ' , array ('foo ' , 'bar ' )), 'mixedcase ' => array ('MixedCaseKey ' => 'value ' ));
103
103
104
104
$ this ->assertEquals ($ expected , $ actual , '->load() converts XML values to PHP ones ' );
105
105
}
@@ -120,7 +120,7 @@ public function testLoadImports()
120
120
$ loader ->load ('services4.xml ' );
121
121
122
122
$ actual = $ container ->getParameterBag ()->all ();
123
- $ expected = array ('a string ' , 'foo ' => 'bar ' , 'values ' => array (true , false ), 'foo_bar ' => new Reference ( ' foo_bar ' ), ' mixedcase ' => array ('MixedCaseKey ' => 'value ' ), 'bar ' => '%foo% ' , 'imported_from_ini ' => true , 'imported_from_yaml ' => true );
123
+ $ expected = array ('a string ' , 'foo ' => 'bar ' , 'values ' => array (true , false ), 'mixedcase ' => array ('MixedCaseKey ' => 'value ' ), 'bar ' => '%foo% ' , 'imported_from_ini ' => true , 'imported_from_yaml ' => true );
124
124
125
125
$ this ->assertEquals (array_keys ($ expected ), array_keys ($ actual ), '->load() imports and merges imported files ' );
126
126
0 commit comments