File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Config/Definition/Exception
DependencyInjection/Tests/Compiler Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 13
13
14
14
/**
15
15
* @author Roland Franssen <franssen.roland@gmail.com>
16
+ *
17
+ * @internal
16
18
*/
17
19
class TreeWithoutRootNodeException extends \RuntimeException
18
20
{
Original file line number Diff line number Diff line change @@ -226,16 +226,15 @@ public function testEnvWithVariableNode(): void
226
226
227
227
/**
228
228
* @group legacy
229
+ * @expectedDeprecation A tree builder without a root node is deprecated since Symfony 4.2 and will not be supported anymore in 5.0.
229
230
*/
230
231
public function testConfigurationWithoutRootNode (): void
231
232
{
232
233
$ container = new ContainerBuilder ();
233
234
$ container ->registerExtension (new EnvExtension (new EnvConfigurationWithoutRootNode ()));
234
- $ container ->loadFromExtension ('env_extension ' );
235
+ $ container ->loadFromExtension ('env_extension ' , [ ' foo ' => ' bar ' ] );
235
236
236
- $ this ->doProcess ($ container );
237
-
238
- $ this ->addToAssertionCount (1 );
237
+ (new ValidateEnvPlaceholdersPass ())->process ($ container );
239
238
}
240
239
241
240
public function testEmptyConfigFromMoreThanOneSource ()
@@ -332,7 +331,7 @@ class EnvConfigurationWithoutRootNode implements ConfigurationInterface
332
331
{
333
332
public function getConfigTreeBuilder ()
334
333
{
335
- return new TreeBuilder (' env_extension ' );
334
+ return new TreeBuilder ();
336
335
}
337
336
}
338
337
You can’t perform that action at this time.
0 commit comments