Security update to Drupal 8.4.6
[yaffs-website] / vendor / twig / twig / test / Twig / Tests / Fixtures / functions / template_from_string.test
1 --TEST--
2 "template_from_string" function
3 --TEMPLATE--
4 {% include template_from_string(template) %}
5
6 {% include template_from_string("Hello {{ name }}") %}
7 {% include template_from_string('{% extends "parent.twig" %}{% block content %}Hello {{ name }}{% endblock %}') %}
8 --TEMPLATE(parent.twig)--
9 {% block content %}{% endblock %}
10 --DATA--
11 return array('name' => 'Fabien', 'template' => "Hello {{ name }}")
12 --EXPECT--
13 Hello Fabien
14 Hello Fabien
15 Hello Fabien