Skip to content

Commit 509bc00

Browse files
committed
Added a test demonstrating the issue when merging
1 parent 37709f3 commit 509bc00

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,33 @@ public function testInvalidArrays()
122122
$config = $this->process($configs);
123123
}
124124

125+
/**
126+
* @expectedException Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
127+
*/
128+
public function testMergingInvalidChannels()
129+
{
130+
$configs = array(
131+
array(
132+
'handlers' => array(
133+
'foo' => array(
134+
'type' => 'stream',
135+
'path' => '/foo',
136+
'channels' => 'A',
137+
)
138+
)
139+
),
140+
array(
141+
'handlers' => array(
142+
'foo' => array(
143+
'channels' => '!B',
144+
)
145+
)
146+
)
147+
);
148+
149+
$config = $this->process($configs);
150+
}
151+
125152
public function testWithType()
126153
{
127154
$configs = array(

0 commit comments

Comments
 (0)