@@ -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" .
@@ -247,7 +247,7 @@ public function testDecodeScalarRootAttributes()
247247
248248 $ expected = array (
249249 '# ' => 'Peter ' ,
250- '@gender ' => 'M '
250+ '@gender ' => 'M ' ,
251251 );
252252
253253 $ this ->assertEquals ($ expected , $ this ->encoder ->decode ($ source , 'xml ' ));
@@ -261,7 +261,7 @@ public function testDecodeRootAttributes()
261261 $ expected = array (
262262 'firstname ' => 'Peter ' ,
263263 'lastname ' => 'Mac Calloway ' ,
264- '@gender ' => 'M '
264+ '@gender ' => 'M ' ,
265265 );
266266
267267 $ this ->assertEquals ($ expected , $ this ->encoder ->decode ($ source , 'xml ' ));
@@ -280,8 +280,8 @@ public function testDecodeArray()
280280 $ expected = array (
281281 'people ' => array ('person ' => array (
282282 array ('firstname ' => 'Benjamin ' , 'lastname ' => 'Alexandre ' ),
283- array ('firstname ' => 'Damien ' , 'lastname ' => 'Clay ' )
284- ))
283+ array ('firstname ' => 'Damien ' , 'lastname ' => 'Clay ' ),
284+ )),
285285 );
286286
287287 $ this ->assertEquals ($ expected , $ this ->encoder ->decode ($ source , 'xml ' ));
@@ -293,11 +293,11 @@ public function testDecodeWithoutItemHash()
293293 $ obj ->xmlFoo = array (
294294 'foo-bar ' => array (
295295 '@key ' => "value " ,
296- 'item ' => array ("@key " => 'key ' , "key-val " => 'val ' )
296+ 'item ' => array ("@key " => 'key ' , "key-val " => 'val ' ),
297297 ),
298298 'Foo ' => array (
299299 'Bar ' => "Test " ,
300- '@Type ' => 'test '
300+ '@Type ' => 'test ' ,
301301 ),
302302 'föo_bär ' => 'a ' ,
303303 "Bar " => array (1 ,2 ,3 ),
@@ -306,11 +306,11 @@ public function testDecodeWithoutItemHash()
306306 $ expected = array (
307307 'foo-bar ' => array (
308308 '@key ' => "value " ,
309- 'key ' => array ('@key ' => 'key ' , "key-val " => 'val ' )
309+ 'key ' => array ('@key ' => 'key ' , "key-val " => 'val ' ),
310310 ),
311311 'Foo ' => array (
312312 'Bar ' => "Test " ,
313- '@Type ' => 'test '
313+ '@Type ' => 'test ' ,
314314 ),
315315 'föo_bär ' => 'a ' ,
316316 "Bar " => array (1 ,2 ,3 ),
0 commit comments