From cd4a3727386db46709f1c98f23622e6101f2a6eb Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 12 May 2014 16:45:21 +0200 Subject: [PATCH] added some missing tests --- test/Twig/Tests/Fixtures/filters/batch_float.php | 31 --------------------- test/Twig/Tests/Fixtures/filters/batch_float.test | 29 +++++++++++++++++++ 2 files changed, 29 insertions(+), 31 deletions(-) delete mode 100644 test/Twig/Tests/Fixtures/filters/batch_float.php create mode 100644 test/Twig/Tests/Fixtures/filters/batch_float.test diff --git a/test/Twig/Tests/Fixtures/filters/batch_float.php b/test/Twig/Tests/Fixtures/filters/batch_float.php deleted file mode 100644 index 52de39c..0000000 --- a/test/Twig/Tests/Fixtures/filters/batch_float.php +++ /dev/null @@ -1,31 +0,0 @@ ---TEST-- -"batch" filter ---TEMPLATE-- -{% for row in items|batch(3.1) %} -
- {% for column in row %} -
{{ column }}
- {% endfor %} -
-{% endfor %} ---DATA-- -return array('items' => array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j')) ---EXPECT-- -
-
a
-
b
-
c
-
-
-
d
-
e
-
f
-
-
-
g
-
h
-
i
-
-
-
j
-
diff --git a/test/Twig/Tests/Fixtures/filters/batch_float.test b/test/Twig/Tests/Fixtures/filters/batch_float.test new file mode 100644 index 0000000..e2ec4be --- /dev/null +++ b/test/Twig/Tests/Fixtures/filters/batch_float.test @@ -0,0 +1,29 @@ +--TEST-- +"batch" filter +--TEMPLATE-- +{% for row in items|batch(3.1) %} +
+ {% for column in row %} +
{{ column }}
+ {% endfor %} +
+{% endfor %} +--DATA-- +return array('items' => array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j')) +--EXPECT-- +
+
a
+
b
+
c
+
d
+
+
+
e
+
f
+
g
+
h
+
+
+
i
+
j
+
-- 1.7.2.5