]> git.immae.eu Git - github/wallabag/wallabag.git/blob - vendor/twig/twig/test/Twig/Tests/Fixtures/macros/default_values.test
4ccff7b6701738959855a9d9a97f75abdcf7e0eb
[github/wallabag/wallabag.git] / vendor / twig / twig / test / Twig / Tests / Fixtures / macros / default_values.test
1 --TEST--
2 macro
3 --TEMPLATE--
4 {% from _self import test %}
5
6 {% macro test(a, b = 'bar') -%}
7 {{ a }}{{ b }}
8 {%- endmacro %}
9
10 {{ test('foo') }}
11 {{ test('bar', 'foo') }}
12 --DATA--
13 return array();
14 --EXPECT--
15 foobar
16 barfoo