Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #1579 Fixed regression for dynamic parent (hason)
This PR was merged into the 1.16-dev branch. Discussion ---------- Fixed regression for dynamic parent Fixes #1578 Commits ------- d2fc98d Fixed regression for dynamic parent
- Loading branch information
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
test/Twig/Tests/Fixtures/tags/inheritance/multiple_dynamic.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--TEST-- | ||
"extends" tag | ||
--TEMPLATE-- | ||
{% set foo = 1 %} | ||
{{ include('parent.twig') }} | ||
{{ include('parent.twig') }} | ||
{% set foo = 2 %} | ||
{{ include('parent.twig') }} | ||
--TEMPLATE(parent.twig)-- | ||
{% extends foo~'_parent.twig' %}{% block content %}{{ parent() }} parent{% endblock %} | ||
--TEMPLATE(1_parent.twig)-- | ||
{% block content %}1{% endblock %} | ||
--TEMPLATE(2_parent.twig)-- | ||
{% block content %}2{% endblock %} | ||
--DATA-- | ||
return array() | ||
--EXPECT-- | ||
1 parent | ||
|
||
1 parent | ||
|
||
2 parent |