-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1621] Failing tests for Filesystem loader
- Loading branch information
Showing
9 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
test/Twig/Tests/Fixtures/tags/inheritance/extends_as_array_with_empty_name.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,12 @@ | ||
--TEST-- | ||
"extends" tag | ||
--TEMPLATE-- | ||
{% extends ["", "bar.twig"] %} | ||
--TEMPLATE(bar.twig)-- | ||
{% block content %} | ||
foo | ||
{% endblock %} | ||
--DATA-- | ||
return array() | ||
--EXPECT-- | ||
foo |
12 changes: 12 additions & 0 deletions
12
test/Twig/Tests/Fixtures/tags/inheritance/extends_as_array_with_null_name.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,12 @@ | ||
--TEST-- | ||
"extends" tag | ||
--TEMPLATE-- | ||
{% extends [null, "bar.twig"] %} | ||
--TEMPLATE(bar.twig)-- | ||
{% block content %} | ||
foo | ||
{% endblock %} | ||
--DATA-- | ||
return array() | ||
--EXPECT-- | ||
foo |
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
3 changes: 3 additions & 0 deletions
3
test/Twig/Tests/Loader/Fixtures/inheritance/array_inheritance_empty_parent.html.twig
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,3 @@ | ||
{% extends ['','parent.html.twig'] %} | ||
|
||
{% block body %}{{ parent() }} Child{% endblock %} |
3 changes: 3 additions & 0 deletions
3
test/Twig/Tests/Loader/Fixtures/inheritance/array_inheritance_nonexistent_parent.html.twig
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,3 @@ | ||
{% extends ['nonexistent.html.twig','parent.html.twig'] %} | ||
|
||
{% block body %}{{ parent() }} Child{% endblock %} |
3 changes: 3 additions & 0 deletions
3
test/Twig/Tests/Loader/Fixtures/inheritance/array_inheritance_null_parent.html.twig
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,3 @@ | ||
{% extends [null,'parent.html.twig'] %} | ||
|
||
{% block body %}{{ parent() }} Child{% endblock %} |
3 changes: 3 additions & 0 deletions
3
test/Twig/Tests/Loader/Fixtures/inheritance/array_inheritance_valid_parent.html.twig
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,3 @@ | ||
{% extends ['parent.html.twig','spare_parent.html.twig'] %} | ||
|
||
{% block body %}{{ parent() }} Child{% endblock %} |
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 @@ | ||
{% block body %}VALID{% endblock %} |
1 change: 1 addition & 0 deletions
1
test/Twig/Tests/Loader/Fixtures/inheritance/spare_parent.html.twig
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 @@ | ||
{% block body %}SPARE PARENT{% endblock %} |