@@ -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 ),
@@ -141,7 +141,7 @@ public function testEncodeScalarRootAttributes()
141141 {
142142 $ array = array (
143143 '# ' => 'Paul ' ,
144- '@gender ' => 'm '
144+ '@gender ' => 'm ' ,
145145 );
146146
147147 $ expected = '<?xml version="1.0"?> ' ."\n" .
@@ -154,7 +154,7 @@ public function testEncodeRootAttributes()
154154 {
155155 $ array = array (
156156 'firstname ' => 'Paul ' ,
157- '@gender ' => 'm '
157+ '@gender ' => 'm ' ,
158158 );
159159
160160 $ expected = '<?xml version="1.0"?> ' ."\n" .
@@ -272,7 +272,7 @@ public function testDecodeScalarRootAttributes()
272272
273273 $ expected = array (
274274 '# ' => 'Peter ' ,
275- '@gender ' => 'M '
275+ '@gender ' => 'M ' ,
276276 );
277277
278278 $ this ->assertEquals ($ expected , $ this ->encoder ->decode ($ source , 'xml ' ));
@@ -286,7 +286,7 @@ public function testDecodeRootAttributes()
286286 $ expected = array (
287287 'firstname ' => 'Peter ' ,
288288 'lastname ' => 'Mac Calloway ' ,
289- '@gender ' => 'M '
289+ '@gender ' => 'M ' ,
290290 );
291291
292292 $ this ->assertEquals ($ expected , $ this ->encoder ->decode ($ source , 'xml ' ));
@@ -305,8 +305,8 @@ public function testDecodeArray()
305305 $ expected = array (
306306 'people ' => array ('person ' => array (
307307 array ('firstname ' => 'Benjamin ' , 'lastname ' => 'Alexandre ' ),
308- array ('firstname ' => 'Damien ' , 'lastname ' => 'Clay ' )
309- ))
308+ array ('firstname ' => 'Damien ' , 'lastname ' => 'Clay ' ),
309+ )),
310310 );
311311
312312 $ this ->assertEquals ($ expected , $ this ->encoder ->decode ($ source , 'xml ' ));
@@ -318,11 +318,11 @@ public function testDecodeWithoutItemHash()
318318 $ obj ->xmlFoo = array (
319319 'foo-bar ' => array (
320320 '@key ' => "value " ,
321- 'item ' => array ("@key " => 'key ' , "key-val " => 'val ' )
321+ 'item ' => array ("@key " => 'key ' , "key-val " => 'val ' ),
322322 ),
323323 'Foo ' => array (
324324 'Bar ' => "Test " ,
325- '@Type ' => 'test '
325+ '@Type ' => 'test ' ,
326326 ),
327327 'föo_bär ' => 'a ' ,
328328 "Bar " => array (1 ,2 ,3 ),
@@ -331,11 +331,11 @@ public function testDecodeWithoutItemHash()
331331 $ expected = array (
332332 'foo-bar ' => array (
333333 '@key ' => "value " ,
334- 'key ' => array ('@key ' => 'key ' , "key-val " => 'val ' )
334+ 'key ' => array ('@key ' => 'key ' , "key-val " => 'val ' ),
335335 ),
336336 'Foo ' => array (
337337 'Bar ' => "Test " ,
338- '@Type ' => 'test '
338+ '@Type ' => 'test ' ,
339339 ),
340340 'föo_bär ' => 'a ' ,
341341 "Bar " => array (1 ,2 ,3 ),
0 commit comments