Skip to content

Commit

Permalink
Fix CS error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Dec 14, 2016
1 parent 2a91f8a commit 4c545b9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/TestCase/Utility/XmlTest.php
Expand Up @@ -386,22 +386,22 @@ public function testFromArray()
*/
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"?>
<tag test="A test">0</tag>
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"?>
Expand Down

0 comments on commit 4c545b9

Please sign in to comment.