File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 99use Symfony \Bundle \FrameworkBundle \Test \KernelTestCase ;
1010use Symfony \Component \DependencyInjection \Compiler \PassConfig ;
1111use Symfony \Component \DependencyInjection \ContainerBuilder ;
12+ use Symfony \Component \DependencyInjection \Loader \XmlFileLoader ;
1213use Symfony \Component \HttpKernel \KernelInterface ;
1314
1415/**
@@ -37,7 +38,6 @@ public function provideBundleWithDifferentConfigurationFormats(): array
3738 {
3839 return [
3940 [__DIR__ .'/../Fixtures/Resources/ConfigurationBundle/config.yml ' ],
40- [__DIR__ .'/../Fixtures/Resources/ConfigurationBundle/config.xml ' ],
4141 [__DIR__ .'/../Fixtures/Resources/ConfigurationBundle/config.php ' ],
4242 [function (ContainerBuilder $ container ) {
4343 $ container ->loadFromExtension ('configuration ' , [
@@ -46,6 +46,12 @@ public function provideBundleWithDifferentConfigurationFormats(): array
4646 ]);
4747 }],
4848 ];
49+
50+ if (class_exists (XmlFileLoader::class)) {
51+ $ formats [] = [__DIR__ .'/../Fixtures/Resources/ConfigurationBundle/config.xml ' ];
52+ }
53+
54+ return $ formats ;
4955 }
5056
5157 /**
You can’t perform that action at this time.
0 commit comments