Browse Source

Fix CS error.

ADmad 9 years ago
parent
commit
4c545b9fac
1 changed files with 7 additions and 7 deletions
  1. 7 7
      tests/TestCase/Utility/XmlTest.php

+ 7 - 7
tests/TestCase/Utility/XmlTest.php

@@ -386,12 +386,12 @@ XML;
      */
     public function testFromArrayZeroValue()
     {
-        $xml = array(
-            'tag' => array(
+        $xml = [
+            'tag' => [
                 '@' => 0,
                 '@test' => 'A test'
-            )
-        );
+            ]
+        ];
         $obj = Xml::fromArray($xml);
         $xmlText = <<<XML
 <?xml version="1.0" encoding="UTF-8"?>
@@ -399,9 +399,9 @@ XML;
 XML;
         $this->assertXmlStringEqualsXmlString($xmlText, $obj->asXML());
 
-        $xml = array(
-            'tag' => array('0')
-        );
+        $xml = [
+            'tag' => ['0']
+        ];
         $obj = Xml::fromArray($xml);
         $xmlText = <<<XML
 <?xml version="1.0" encoding="UTF-8"?>