Add a test

This commit is contained in:
Fabien Potencier
2024-08-20 09:34:22 +02:00
parent 3a307cd41d
commit 63e35b9620
@@ -0,0 +1,11 @@
--TEST--
Exception for unknown macro in different template
--TEMPLATE--
{% import foo_template as macros %}
{{ macros.foo() }}
--TEMPLATE(foo.twig)--
foo
--DATA--
return array('foo_template' => 'foo.twig')
--EXCEPTION--
Twig\Error\RuntimeError: Macro "foo" is not defined in template "foo.twig" in "index.twig" at line 3.