diff options
Diffstat (limited to 'vendor/twig/twig/test/Twig/Tests/Fixtures/functions/template_from_string.test')
-rw-r--r-- | vendor/twig/twig/test/Twig/Tests/Fixtures/functions/template_from_string.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/twig/twig/test/Twig/Tests/Fixtures/functions/template_from_string.test b/vendor/twig/twig/test/Twig/Tests/Fixtures/functions/template_from_string.test new file mode 100644 index 00000000..41428da1 --- /dev/null +++ b/vendor/twig/twig/test/Twig/Tests/Fixtures/functions/template_from_string.test | |||
@@ -0,0 +1,11 @@ | |||
1 | --TEST-- | ||
2 | "template_from_string" function | ||
3 | --TEMPLATE-- | ||
4 | {% include template_from_string(template) %} | ||
5 | |||
6 | {% include template_from_string("Hello {{ name }}") %} | ||
7 | --DATA-- | ||
8 | return array('name' => 'Fabien', 'template' => "Hello {{ name }}") | ||
9 | --EXPECT-- | ||
10 | Hello Fabien | ||
11 | Hello Fabien | ||