aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/twig/twig/test/Twig/Tests/Fixtures/macros/default_values.test
blob: 4ccff7b6701738959855a9d9a97f75abdcf7e0eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
macro
--TEMPLATE--
{% from _self import test %}

{% macro test(a, b = 'bar') -%}
{{ a }}{{ b }}
{%- endmacro %}

{{ test('foo') }}
{{ test('bar', 'foo') }}
--DATA--
return array();
--EXPECT--
foobar
barfoo