Security update for Core, with self-updated composer
[yaffs-website] / vendor / twig / twig / test / Twig / Tests / Fixtures / tags / for / loop_not_defined_cond.test
1 --TEST--
2 "for" tag
3 --TEMPLATE--
4 {% for i, item in items if loop.last > 0 %}
5 {% endfor %}
6 --DATA--
7 return array('items' => array('a', 'b'))
8 --EXCEPTION--
9 Twig_Error_Syntax: The "loop" variable cannot be used in a looping condition in "index.twig" at line 2.