Files
Twig/tests/Fixtures/functions/template_from_string_error_php80.test
2021-12-15 06:29:16 +01:00

11 lines
350 B
Plaintext

--TEST--
"template_from_string" function
--CONDITION--
PHP_VERSION_ID < 80100
--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.