8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70187db commit e0937faCopy full SHA for e0937fa
src/Symfony/Component/Config/Tests/Builder/GeneratedConfigTest.php
@@ -59,6 +59,16 @@ public function testSecondNodeWithInitialValuesThrowsException()
59
$configBuilder->someCleverName(['first'=>'bar']);
60
}
61
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
+
72
/**
73
* Generate the ConfigBuilder or return an already generated instance.
74
*/
0 commit comments