File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
tests/DependencyInjection Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1111
1212namespace Symfony \Bundle \MonologBundle \Tests \DependencyInjection ;
1313
14- use PHPUnit \Framework \Attributes \Group ;
14+ use PHPUnit \Framework \Attributes \IgnoreDeprecations ;
1515use Symfony \Component \Config \FileLocator ;
1616use Symfony \Component \DependencyInjection \ContainerBuilder ;
1717use Symfony \Component \DependencyInjection \Loader \XmlFileLoader ;
1818
1919/**
2020 * XML configuration deprecated since Symfony 7.4.
2121 */
22- #[Group( ' legacy ' ) ]
22+ #[IgnoreDeprecations ]
2323class XmlMonologExtensionTest extends FixtureMonologExtensionTestCase
2424{
2525 protected function loadFixture (ContainerBuilder $ container , string $ fixture )
2626 {
27+ if (!class_exists (XmlFileLoader::class)) {
28+ $ this ->markTestSkipped ('The XML configuration has been removed in Symfony 8.0. ' );
29+ }
30+
2731 $ loader = new XmlFileLoader ($ container , new FileLocator (__DIR__ .'/Fixtures/xml ' ));
2832 $ loader ->load ($ fixture .'.xml ' );
2933 }
You can’t perform that action at this time.
0 commit comments