diff --git a/src/Writer/Ini.php b/src/Writer/Ini.php index d67488a..073c324 100644 --- a/src/Writer/Ini.php +++ b/src/Writer/Ini.php @@ -78,7 +78,7 @@ public function setRenderWithoutSections($withoutSections=true) } /** - * Render a Zend_Config into a INI config string. + * Render a Zend\Config into a INI config string. * * @since 1.10 * @return string @@ -168,10 +168,10 @@ protected function _prepareValue($value) * on the top of config. * * @see http://framework.zend.com/issues/browse/ZF-6289 - * @param Zend_Config - * @return Zend_Config + * @param Zend\Config + * @return Zend\Config */ - protected function _sortRootElements(Zend_Config $config) + protected function _sortRootElements(\Zend\Config\Config $config) { $configArray = $config->toArray(); $sections = array(); @@ -189,6 +189,6 @@ protected function _sortRootElements(Zend_Config $config) $configArray[$key] = $value; } - return new Zend_Config($configArray); + return new \Zend\Config\Config($configArray); } } diff --git a/test/Writer/IniTest.php b/test/Writer/IniTest.php index 3c7084c..bf64d66 100644 --- a/test/Writer/IniTest.php +++ b/test/Writer/IniTest.php @@ -223,7 +223,7 @@ public function testNoDoubleQuoutesInValue() */ public function testZF6289_NonSectionElementsAndSectionJumbling() { - $config = new Zend_Config(array( + $config = new \Zend\Config\Config(array( 'one' => 'element', 'two' => array('type' => 'section'), 'three' => 'element', @@ -231,7 +231,7 @@ public function testZF6289_NonSectionElementsAndSectionJumbling() 'five' => 'element' )); - $writer = new Zend_Config_Writer_Ini; + $writer = new \Zend\Config\Writer\Ini; $iniString = $writer->setConfig($config)->render($config); $expected = <<