--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.