From 1884d7bb40f9c5b562529fc87f67ad48f40545cb Mon Sep 17 00:00:00 2001 From: ADmad Date: Wed, 14 Jan 2015 11:49:45 +0530 Subject: [PATCH] Update PhpConfig::dump() to generate file which returns array. --- src/Core/Configure/Engine/PhpConfig.php | 2 +- tests/TestCase/Core/Configure/Engine/PhpConfigTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Configure/Engine/PhpConfig.php b/src/Core/Configure/Engine/PhpConfig.php index add7e076ee9..b4aebc80ee9 100644 --- a/src/Core/Configure/Engine/PhpConfig.php +++ b/src/Core/Configure/Engine/PhpConfig.php @@ -90,7 +90,7 @@ public function read($key) */ public function dump($key, array $data) { - $contents = '_getFilePath($key); return file_put_contents($filename, $contents); diff --git a/tests/TestCase/Core/Configure/Engine/PhpConfigTest.php b/tests/TestCase/Core/Configure/Engine/PhpConfigTest.php index 6b2d9f9b831..3044840751c 100644 --- a/tests/TestCase/Core/Configure/Engine/PhpConfigTest.php +++ b/tests/TestCase/Core/Configure/Engine/PhpConfigTest.php @@ -145,7 +145,7 @@ public function testDump() $this->assertTrue($result > 0); $expected = << array ( 'two' => 'value',