mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-25 05:46:25 +00:00
Remove the new yield nodes
This commit is contained in:
@@ -56,6 +56,7 @@ class ModuleTest extends NodeTestCase
|
||||
$traits = new Node();
|
||||
$source = new Source('{{ foo }}', 'foo.twig');
|
||||
$parentTemplate = $this->getEnvironment()->useYield() ? 'YieldingTemplate' : 'Template';
|
||||
$displayStmt = $this->getEchoOrYield();
|
||||
|
||||
$node = new ModuleNode($body, $extends, $blocks, $macros, $traits, new Node([]), $source);
|
||||
$tests[] = [$node, <<<EOF
|
||||
@@ -96,7 +97,7 @@ class __TwigTemplate_%x extends $parentTemplate
|
||||
{
|
||||
\$macros = \$this->macros;
|
||||
// line 1
|
||||
echo "foo";
|
||||
$displayStmt "foo";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user