diff options
Diffstat (limited to 'vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/loop_context.test')
-rw-r--r-- | vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/loop_context.test | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/loop_context.test b/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/loop_context.test deleted file mode 100644 index 93bc76a1..00000000 --- a/vendor/twig/twig/test/Twig/Tests/Fixtures/tags/for/loop_context.test +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | --TEST-- | ||
2 | "for" tag adds a loop variable to the context | ||
3 | --TEMPLATE-- | ||
4 | {% for item in items %} | ||
5 | * {{ loop.index }}/{{ loop.index0 }} | ||
6 | * {{ loop.revindex }}/{{ loop.revindex0 }} | ||
7 | * {{ loop.first }}/{{ loop.last }}/{{ loop.length }} | ||
8 | |||
9 | {% endfor %} | ||
10 | --DATA-- | ||
11 | return array('items' => array('a', 'b')) | ||
12 | --EXPECT-- | ||
13 | * 1/0 | ||
14 | * 2/1 | ||
15 | * 1//2 | ||
16 | |||
17 | * 2/1 | ||
18 | * 1/0 | ||
19 | * /1/2 | ||