mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-06 23:48:50 +00:00
minor #4761 Fix tests (fabpot)
This PR was merged into the 4.x branch.
Discussion
----------
Fix tests
Commits
-------
2fba06cba9 Fix tests
This commit is contained in:
@@ -57,7 +57,7 @@ class GetAttrTest extends NodeTestCase
|
||||
$tests[] = [$node, \sprintf('%s%s, "bar", arguments: [], lineno: 1)', self::createAttributeGetter(), self::createVariableGetter('foo', 1))];
|
||||
|
||||
$node = new GetAttrExpression($expr, $attr, $args, Template::ANY_CALL, 1, true);
|
||||
$tests[] = [$node, '((null === ($_v%s = // line 1'."\n".'($context["foo"] ?? null))) ? null : '.self::createAttributeGetter().'$_v%s, "bar", [], "any", false, false, false, 1))', null, true];
|
||||
$tests[] = [$node, '((null === ($_v%s = // line 1'."\n".'($context["foo"] ?? null))) ? null : '.self::createAttributeGetter().'$_v%s, "bar", arguments: [], lineno: 1))', null, true];
|
||||
|
||||
$node = new GetAttrExpression($expr, $attr, $args, Template::ARRAY_CALL, 1);
|
||||
$tests[] = [$node, '(($_v%s = // line 1'."\n".
|
||||
|
||||
Reference in New Issue
Block a user