mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 02:46:29 +00:00
Add a test
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user