Skip to content
Browse files

Add testcase for issue #347

  • Loading branch information...
1 parent 9328df1 commit a8d29b1f84ea604f154c5cf1cb48f3a7c0e51d97 @henrikbjorn henrikbjorn committed
Showing with 24 additions and 0 deletions.
  1. +24 −0 test/Twig/Tests/Fixtures/tests/array.test
View
24 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

0 comments on commit a8d29b1

Please sign in to comment.
Something went wrong with that request. Please try again.