Skip to content

Commit cad2529

Browse files
committed
Added some extra checks in the tests from ParamConfigurator
1 parent d167bc2 commit cad2529

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
1010
use Symfony\Component\Config\Tests\Builder\Fixtures\AddToList;
1111
use Symfony\Component\Config\Tests\Builder\Fixtures\NodeInitialValues;
12+
use Symfony\Component\DependencyInjection\Loader\Configurator\ParamConfigurator;
1213
use Symfony\Config\AddToListConfig;
1314

1415
/**
@@ -25,12 +26,16 @@ public function fixtureNames()
2526
'VariableType' => 'variable_type',
2627
'AddToList' => 'add_to_list',
2728
'NodeInitialValues' => 'node_initial_values',
28-
'Placeholders' => 'placeholders',
2929
];
3030

3131
foreach ($array as $name => $alias) {
3232
yield $name => [$name, $alias];
3333
}
34+
35+
// If symfony/dependency-injection:^5.3 is installed
36+
if (class_exists(ParamConfigurator::class)) {
37+
yield 'Placeholders' => ['Placeholders', 'placeholders'];
38+
}
3439
}
3540

3641
/**

0 commit comments

Comments
 (0)