From 5af24bdb31d50d4f47ed13940867dc52b8477212 Mon Sep 17 00:00:00 2001 From: euromark Date: Tue, 23 Dec 2014 03:29:52 +0100 Subject: [PATCH] Correct array syntax. --- lib/Cake/Test/Case/Core/ConfigureTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Test/Case/Core/ConfigureTest.php b/lib/Cake/Test/Case/Core/ConfigureTest.php index 717b52bc5..435e6b310 100644 --- a/lib/Cake/Test/Case/Core/ConfigureTest.php +++ b/lib/Cake/Test/Case/Core/ConfigureTest.php @@ -155,7 +155,7 @@ class ConfigureTest extends CakeTestCase { */ public function testConsume() { $this->assertNull(Configure::consume('DoesNotExist'), 'Should be null on empty value'); - Configure::write('Test', ['key' => 'value', 'key2' => 'value2']); + Configure::write('Test', array('key' => 'value', 'key2' => 'value2')); $result = Configure::consume('Test.key'); $this->assertEquals('value', $result); @@ -164,7 +164,7 @@ class ConfigureTest extends CakeTestCase { $this->assertEquals('value2', $result, 'Other values should remain.'); $result = Configure::consume('Test'); - $expected = ['key2' => 'value2']; + $expected = array('key2' => 'value2'); $this->assertEquals($expected, $result); }