diff --git a/extra/twig-extra-bundle/Tests/IntegrationTest.php b/extra/twig-extra-bundle/Tests/IntegrationTest.php index 3d22851c5..c5b420ebe 100644 --- a/extra/twig-extra-bundle/Tests/IntegrationTest.php +++ b/extra/twig-extra-bundle/Tests/IntegrationTest.php @@ -19,8 +19,7 @@ class IntegrationTest extends KernelTestCase { self::bootKernel(); - $container = method_exists(self::class, 'getContainer') ? self::getContainer() : self::$container; - $rendered = $container->get('twig')->render('markdown_to_html.html.twig'); + $rendered = self::getContainer()->get('twig')->render('markdown_to_html.html.twig'); $this->assertStringContainsString('