Skip to content

Commit

Permalink
Reproducing test case for zendframework#6797
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlundrigan committed Nov 8, 2014
1 parent 3e6936d commit fcc0b30
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/ZendTest/Config/Writer/XmlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,24 @@ public function testSectionsToString()
$expected = str_replace("\r\n", "\n", $expected);
$this->assertEquals($expected, $configString);
}

public function testAddBranchProperyConstructsSubBranchesOfTypeNumeric()
{
$config = new Config(array(), true);
$config->production = array(array('foo'), array('bar'));

$configString = $this->writer->toString($config);

$expected = <<<ECS
<?xml version="1.0" encoding="UTF-8"?>
<zend-config>
<production>foo</production>
<production>bar</production>
</zend-config>
ECS;

$expected = str_replace("\r\n", "\n", $expected);
$this->assertEquals($expected, $configString);
}
}

0 comments on commit fcc0b30

Please sign in to comment.