8000 Added test · symfony/symfony@e0937fa · GitHub
[go: up one dir, main page]

Skip to content

Commit e0937fa

Browse files
committed
Added test
1 parent 70187db commit e0937fa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Symfony/Component/Config/Tests/Builder/GeneratedConfigTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ public function testSecondNodeWithInitialValuesThrowsException()
5959
$configBuilder->someCleverName(['first'=>'bar']);
6060
}
6161

62+
/**
63+
* Make sure you pass values that are defined.
64+
*/
65+
public function testWrongInitialValues()
66+
{
67+
$configBuilder = $this->generateConfigBuilder(NodeInitialValues::class);
68+
$this->expectException(InvalidConfigurationException::class);
69+
$configBuilder->someCleverName(['not_exists'=>'foo']);
70+
}
71+
6272
/**
6373
* Generate the ConfigBuilder or return an already generated instance.
6474
*/

0 commit comments

Comments
 (0)
0