Files
Twig/tests/Fixtures/functions/template_from_string_error.test
2019-06-30 14:48:27 +02:00

9 lines
313 B
Plaintext

--TEST--
"template_from_string" function
--TEMPLATE--
{% include template_from_string("{{ not a Twig template ", "foo.twig") %}
--DATA--
return []
--EXCEPTION--
Twig\Error\SyntaxError: Unclosed "variable" in "foo.twig (string template 4900163d56b1af4b704c6b0afee7f98ba53418ce7a93d37a3af1882735baf9cd)" at line 1.