Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed error guessing in blocks in a child template
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
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
15 changes: 15 additions & 0 deletions
15
test/Twig/Tests/Fixtures/exceptions/undefined_template_in_child_template.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,15 @@ | ||
--TEST-- | ||
Exception for an undefined template in a child template | ||
--TEMPLATE-- | ||
{% extends 'base.twig' %} | ||
|
||
{% block sidebar %} | ||
{{ include('include.twig') }} | ||
{% endblock %} | ||
--TEMPLATE(base.twig)-- | ||
{% block sidebar %} | ||
{% endblock %} | ||
--DATA-- | ||
return array() | ||
--EXCEPTION-- | ||
Twig_Error_Loader: Template "include.twig" is not defined in "index.twig" at line 5. |