@@ -67,11 +67,11 @@ public function testAttributes()
6767 $ obj ->xmlFoo = array (
6868 'foo-bar ' => array (
6969 '@id ' => 1 ,
70- '@name ' => 'Bar '
70+ '@name ' => 'Bar ' ,
7171 ),
7272 'Foo ' => array (
7373 'Bar ' => "Test " ,
74- '@Type ' => 'test '
74+ '@Type ' => 'test ' ,
7575 ),
7676 'föo_bär ' => 'a ' ,
7777 "Bar " => array (1 ,2 ,3 ),
@@ -124,7 +124,7 @@ public function testEncodeScalarRootAttributes()
124124 {
125125 $ array = array (
126126 '# ' => 'Paul ' ,
127- '@gender ' => 'm '
127+ '@gender ' => 'm ' ,
128128 );
129129
130130 $ expected = '<?xml version="1.0"?> ' ."\n" .
@@ -137,7 +137,7 @@ public function testEncodeRootAttributes()
137137 {
138138 $ array = array (
139139 'firstname ' => 'Paul ' ,
140- '@gender ' => 'm '
140+ '@gender ' => 'm ' ,
141141 );
142142
143143 $ expected = '<?xml version="1.0"?> ' ."\n" .
@@ -230,7 +230,7 @@ public function testDecodeScalarRootAttributes()
230230
231231 $ expected = array (
232232 '# ' => 'Peter ' ,
233- '@gender ' => 'M '
233+ '@gender ' => 'M ' ,
234234 );
235235
236236 $ this ->assertEquals ($ expected , $ this ->encoder ->decode ($ source , 'xml ' ));
@@ -244,7 +244,7 @@ public function testDecodeRootAttributes()
244244 $ expected = array (
245245 'firstname ' => 'Peter ' ,
246246 'lastname ' => 'Mac Calloway ' ,
247- '@gender ' => 'M '
247+ '@gender ' => 'M ' ,
248248 );
249249
250250 $ this ->assertEquals ($ expected , $ this ->encoder ->decode ($ source , 'xml ' ));
@@ -263,8 +263,8 @@ public function testDecodeArray()
263263 $ expected = array (
264264 'people ' => array ('person ' => array (
265265 array ('firstname ' => 'Benjamin ' , 'lastname ' => 'Alexandre ' ),
266- array ('firstname ' => 'Damien ' , 'lastname ' => 'Clay ' )
267- ))
266+ array ('firstname ' => 'Damien ' , 'lastname ' => 'Clay ' ),
267+ )),
268268 );
269269
270270 $ this ->assertEquals ($ expected , $ this ->encoder ->decode ($ source , 'xml ' ));
@@ -276,11 +276,11 @@ public function testDecodeWithoutItemHash()
276276 $ obj ->xmlFoo = array (
277277 'foo-bar ' => array (
278278 '@key ' => "value " ,
279- 'item ' => array ("@key " => 'key ' , "key-val " => 'val ' )
279+ 'item ' => array ("@key " => 'key ' , "key-val " => 'val ' ),
280280 ),
281281 'Foo ' => array (
282282 'Bar ' => "Test " ,
283- '@Type ' => 'test '
283+ '@Type ' => 'test ' ,
284284 ),
285285 'föo_bär ' => 'a ' ,
286286 "Bar " => array (1 ,2 ,3 ),
@@ -289,11 +289,11 @@ public function testDecodeWithoutItemHash()
289289 $ expected = array (
290290 'foo-bar ' => array (
291291 '@key ' => "value " ,
292- 'key ' => array ('@key ' => 'key ' , "key-val " => 'val ' )
292+ 'key ' => array ('@key ' => 'key ' , "key-val " => 'val ' ),
293293 ),
294294 'Foo ' => array (
295295 'Bar ' => "Test " ,
296- '@Type ' => 'test '
296+ '@Type ' => 'test ' ,
297297 ),
298298 'föo_bär ' => 'a ' ,
299299 "Bar " => array (1 ,2 ,3 ),
0 commit comments