Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tests/DependencyInjection/XmlMonologExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,23 @@

namespace Symfony\Bundle\MonologBundle\Tests\DependencyInjection;

use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\IgnoreDeprecations;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;

/**
* XML configuration deprecated since Symfony 7.4.
*/
#[Group('legacy')]
#[IgnoreDeprecations]
class XmlMonologExtensionTest extends FixtureMonologExtensionTestCase
{
protected function loadFixture(ContainerBuilder $container, string $fixture)
{
if (!class_exists(XmlFileLoader::class)) {
$this->markTestSkipped('The XML configuration has been removed in Symfony 8.0.');
}

$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/Fixtures/xml'));
$loader->load($fixture.'.xml');
}
Expand Down