From cdbf5a0decb26531330d1549d9746fb7022b8d71 Mon Sep 17 00:00:00 2001 From: Mark Scherer Date: Sat, 2 May 2015 14:26:57 +0200 Subject: [PATCH] Correct brackets. --- lib/Cake/Test/Case/View/XmlViewTest.php | 52 ++++++++++++------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/lib/Cake/Test/Case/View/XmlViewTest.php b/lib/Cake/Test/Case/View/XmlViewTest.php index d90c057ae..48b2b6741 100644 --- a/lib/Cake/Test/Case/View/XmlViewTest.php +++ b/lib/Cake/Test/Case/View/XmlViewTest.php @@ -106,28 +106,28 @@ class XmlViewTest extends CakeTestCase { $Request = new CakeRequest(); $Response = new CakeResponse(); $Controller = new Controller($Request, $Response); - $data = [ - '_serialize' => ['tags'], - '_xmlOptions' => ['format' => 'attributes'], - 'tags' => [ - 'tag' => [ - [ + $data = array( + '_serialize' => array('tags'), + '_xmlOptions' => array('format' => 'attributes'), + 'tags' => array( + 'tag' => array( + array( 'id' => '1', 'name' => 'defect' - ], - [ + ), + array( 'id' => '2', 'name' => 'enhancement' - ] - ] - ] - ]; + ) + ) + ) + ); $Controller->set($data); $Controller->viewClass = 'Xml'; $View = new XmlView($Controller); $result = $View->render(); - $expected = Xml::build(['response' => ['tags' => $data['tags']]], $data['_xmlOptions'])->asXML(); + $expected = Xml::build(array('response' => array('tags' => $data['tags'])), $data['_xmlOptions'])->asXML(); $this->assertSame($expected, $result); } @@ -140,24 +140,24 @@ class XmlViewTest extends CakeTestCase { $Request = new CakeRequest(); $Response = new CakeResponse(); $Controller = new Controller($Request, $Response); - $data = [ + $data = array( '_serialize' => 'tags', - '_xmlOptions' => ['format' => 'attributes'], - 'tags' => [ - 'tags' => [ - 'tag' => [ - [ + '_xmlOptions' => array('format' => 'attributes'), + 'tags' => array( + 'tags' => array( + 'tag' => array( + array( 'id' => '1', 'name' => 'defect' - ], - [ + ), + array( 'id' => '2', 'name' => 'enhancement' - ] - ] - ] - ] - ]; + ) + ) + ) + ) + ); $Controller->set($data); $Controller->viewClass = 'Xml'; $View = new XmlView($Controller);