Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'akrabat/ZendConfigWriterIniFixup'
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Jul 26, 2010
4 parents 8f4a51f + 88ec12d + 17cbc64 + 914b7ad commit 196ca18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/Writer/Ini.php
Expand Up @@ -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
Expand Down Expand Up @@ -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();
Expand All @@ -189,6 +189,6 @@ protected function _sortRootElements(Zend_Config $config)
$configArray[$key] = $value;
}

return new Zend_Config($configArray);
return new \Zend\Config\Config($configArray);
}
}
4 changes: 2 additions & 2 deletions test/Writer/IniTest.php
Expand Up @@ -223,15 +223,15 @@ 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',
'four' => array('type' => 'section'),
'five' => 'element'
));

$writer = new Zend_Config_Writer_Ini;
$writer = new \Zend\Config\Writer\Ini;
$iniString = $writer->setConfig($config)->render($config);

$expected = <<<ECS
Expand Down

0 comments on commit 196ca18

Please sign in to comment.