@@ -24,14 +24,14 @@ class XmlEncoderTest extends \PHPUnit_Framework_TestCase
2424
2525 protected function setUp ()
2626 {
27- $ this ->encoder = new XmlEncoder ;
27+ $ this ->encoder = new XmlEncoder () ;
2828 $ serializer = new Serializer (array (new CustomNormalizer ()), array ('xml ' => new XmlEncoder ()));
2929 $ this ->encoder ->setSerializer ($ serializer );
3030 }
3131
3232 public function testEncodeScalar ()
3333 {
34- $ obj = new ScalarDummy ;
34+ $ obj = new ScalarDummy () ;
3535 $ obj ->xmlFoo = "foo " ;
3636
3737 $ expected = '<?xml version="1.0"?> ' ."\n" .
@@ -42,7 +42,7 @@ public function testEncodeScalar()
4242
4343 public function testSetRootNodeName ()
4444 {
45- $ obj = new ScalarDummy ;
45+ $ obj = new ScalarDummy () ;
4646 $ obj ->xmlFoo = "foo " ;
4747
4848 $ this ->encoder ->setRootNodeName ('test ' );
@@ -63,7 +63,7 @@ public function testDocTypeIsNotAllowed()
6363
6464 public function testAttributes ()
6565 {
66- $ obj = new ScalarDummy ;
66+ $ obj = new ScalarDummy () ;
6767 $ obj ->xmlFoo = array (
6868 'foo-bar ' => array (
6969 '@id ' => 1 ,
@@ -92,7 +92,7 @@ public function testAttributes()
9292
9393 public function testElementNameValid ()
9494 {
95- $ obj = new ScalarDummy ;
95+ $ obj = new ScalarDummy () ;
9696 $ obj ->xmlFoo = array (
9797 'foo-bar ' => 'a ' ,
9898 'foo_bar ' => 'a ' ,
@@ -206,7 +206,7 @@ public function testEncode()
206206 public function testEncodeSerializerXmlRootNodeNameOption ()
207207 {
208208 $ options = array ('xml_root_node_name ' => 'test ' );
209- $ this ->encoder = new XmlEncoder ;
209+ $ this ->encoder = new XmlEncoder () ;
210210 $ serializer = new Serializer (array (), array ('xml ' => new XmlEncoder ()));
211211 $ this ->encoder ->setSerializer ($ serializer );
212212
@@ -289,7 +289,7 @@ public function testDecodeArray()
289289
290290 public function testDecodeWithoutItemHash ()
291291 {
292- $ obj = new ScalarDummy ;
292+ $ obj = new ScalarDummy () ;
293293 $ obj ->xmlFoo = array (
294294 'foo-bar ' => array (
295295 '@key ' => "value " ,
@@ -362,7 +362,7 @@ protected function getXmlSource()
362362
363363 protected function getObject ()
364364 {
365- $ obj = new Dummy ;
365+ $ obj = new Dummy () ;
366366 $ obj ->foo = 'foo ' ;
367367 $ obj ->bar = array ('a ' , 'b ' );
368368 $ obj ->baz = array ('key ' => 'val ' , 'key2 ' => 'val ' , 'A B ' => 'bar ' , 'item ' => array (array ('title ' => 'title1 ' ), array ('title ' => 'title2 ' )), 'Barry ' => array ('FooBar ' => array ('Baz ' => 'Ed ' , '@id ' => 1 )));
0 commit comments