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

Fixed the call to addBranch() to include $branchName #6797

Closed
wants to merge 3 commits into from

Conversation

delboy1978uk
Copy link
Contributor

No description provided.

@Ocramius
Copy link
Member

@delboy1978uk as usual: test case required

@adamlundrigan
Copy link
Contributor

@delboy1978uk here's a simple reproducing test case if you're having trouble writing up your own:

    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);
    }

You can cherry-pick it (adamlundrigan/zf2@fcc0b30) into your fix branch and then push to have it included in the PR.

@delboy1978uk
Copy link
Contributor Author

never done a cherry pick lol! giving it a shot just now, thanks adam :-)

@delboy1978uk
Copy link
Contributor Author

awesome! all is well :-D

@delboy1978uk
Copy link
Contributor Author

bump (ocramius jumping on a koopa)

@@ -82,4 +82,24 @@ public function testSectionsToString()
$expected = str_replace("\r\n", "\n", $expected);
$this->assertEquals($expected, $configString);
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this trailing whitespace and add an @group 6797 annotation to the method?

@delboy1978uk
Copy link
Contributor Author

@Ocramius, how's that? :-)

@Ocramius Ocramius added this to the 2.3.4 milestone Dec 2, 2014
@Ocramius
Copy link
Member

Ocramius commented Dec 2, 2014

Looking good!

Ocramius pushed a commit that referenced this pull request Dec 5, 2014
Ocramius added a commit that referenced this pull request Dec 5, 2014
… carriage return character removal `str_replace()` call
@Ocramius Ocramius closed this in 67a54d4 Dec 5, 2014
Ocramius added a commit that referenced this pull request Dec 5, 2014
@Ocramius
Copy link
Member

Ocramius commented Dec 5, 2014

@delboy1978uk thanks, merged!

master: 67a54d4
develop: 4630b08

gianarb pushed a commit to zendframework/zend-config that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-config that referenced this pull request May 15, 2015
…r new test, removing unused carriage return character removal `str_replace()` call
gianarb pushed a commit to zendframework/zend-config that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-config that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants