mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-30 00:47:12 +00:00
moved test under tests/
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
--TEST--
|
||||
"include" function
|
||||
--TEMPLATE--
|
||||
{% extends "base.twig" %}
|
||||
|
||||
{% block content %}
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
--TEMPLATE(base.twig)--
|
||||
{% block content %}
|
||||
{{ include("foo.twig") }}
|
||||
{% endblock %}
|
||||
--DATA--
|
||||
return []
|
||||
--EXCEPTION--
|
||||
Twig\Error\LoaderError: Template "foo.twig" is not defined in "base.twig" at line 3.
|
||||
Reference in New Issue
Block a user