TwigVariableParserFactory example

use Twig\Loader\ArrayLoader;

/** * @internal * * @covers \Shopware\Core\Framework\Adapter\Twig\TwigVariableParserFactory */
class TwigVariableParserFactoryTest extends TestCase
{
    public function testGetParser(): void
    {
        $factory = new TwigVariableParserFactory();
        $twig = new Environment(new ArrayLoader([]));

        static::assertInstanceOf(TwigVariableParser::class$factory->getParser($twig));
    }
}
Home | Imprint | This part of the site doesn't use cookies.