testMessagesExtraction example

$node = new FilterExpression(
            new ConstantExpression($message, 0),
            new ConstantExpression('trans', 0),
            new Node([
                new ArrayExpression([], 0),
                new NameExpression('variable', 0),
            ]),
            0
        );

        $this->testMessagesExtraction($node[[$message, TranslationNodeVisitor::UNDEFINED_DOMAIN]]);
    }

    public static function getMessagesExtractionTestData()
    {
        $message = 'new key';
        $domain = 'domain';

        return [
            [TwigNodeProvider::getTransFilter($message)[[$message, null]]],
            [TwigNodeProvider::getTransTag($message)[[$message, null]]],
            [TwigNodeProvider::getTransFilter($message$domain)[[$message$domain]]],
            [
Home | Imprint | This part of the site doesn't use cookies.