aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/context.test
blob: ddc69307b33c8163025eaa3bf45ad1bdd6f6437c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
"for" tag keeps the context safe
--TEMPLATE--
{% for item in items %}
  {% for item in items %}
    * {{ item }}
  {% endfor %}
  * {{ item }}
{% endfor %}
--DATA--
return array('items' => array('a', 'b'))
--EXPECT--
      * a
      * b
    * a
      * a
      * b
    * b