From a8d29b1f84ea604f154c5cf1cb48f3a7c0e51d97 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Henrik=20Bj=C3=B8rnskov?= Date: Wed, 1 Jun 2011 15:27:40 +0200 Subject: [PATCH] Add testcase for issue #347 --- test/Twig/Tests/Fixtures/tests/array.test | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) create mode 100644 test/Twig/Tests/Fixtures/tests/array.test diff --git a/test/Twig/Tests/Fixtures/tests/array.test b/test/Twig/Tests/Fixtures/tests/array.test new file mode 100644 index 0000000..1429d37 --- /dev/null +++ b/test/Twig/Tests/Fixtures/tests/array.test @@ -0,0 +1,24 @@ +--TEST-- +array index test +--TEMPLATE-- +{% for key, value in days %} +{{ key }} +{% endfor %} +--DATA-- +return array('days' => array( + 1 => array('money' => 9), + 2 => array('money' => 21), + 3 => array('money' => 38), + 4 => array('money' => 6), + 18 => array('money' => 6), + 19 => array('money' => 3), + 31 => array('money' => 11), +)); +--EXPECT-- +1 +2 +3 +4 +18 +19 +31 -- 1.7.2.5