aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/twig/twig/test/Twig/Tests/Fixtures/macros/with_filters.test
blob: 685626f2aca45cd6343a585ded458150035cad8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
macro with a filter
--TEMPLATE--
{% import _self as test %}

{% macro test() %}
    {% filter escape %}foo<br />{% endfilter %}
{% endmacro %}

{{ test.test() }}
--DATA--
return array();
--EXPECT--
foo&lt;br /&gt;