From 0db5c3100bd76c0a8e1041fc176d72adc881f0a7 Mon Sep 17 00:00:00 2001 From: Ulf Date: Thu, 15 May 2014 20:06:18 +0200 Subject: [PATCH] [Twig][Tests][Fixtures][filters] Added empty string tests for "first" and "last" filters --- test/Twig/Tests/Fixtures/filters/first.test | 1 + test/Twig/Tests/Fixtures/filters/last.test | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/test/Twig/Tests/Fixtures/filters/first.test b/test/Twig/Tests/Fixtures/filters/first.test index 90f4927..aa54645 100644 --- a/test/Twig/Tests/Fixtures/filters/first.test +++ b/test/Twig/Tests/Fixtures/filters/first.test @@ -6,6 +6,7 @@ {{ '1234'|first }} {{ arr|first }} {{ 'Ä€é'|first }} +{{ ''|first }} --DATA-- return array('arr' => new ArrayObject(array(1, 2, 3, 4))) --EXPECT-- diff --git a/test/Twig/Tests/Fixtures/filters/last.test b/test/Twig/Tests/Fixtures/filters/last.test index 018fdad..1b8031e 100644 --- a/test/Twig/Tests/Fixtures/filters/last.test +++ b/test/Twig/Tests/Fixtures/filters/last.test @@ -6,6 +6,7 @@ {{ '1234'|last }} {{ arr|last }} {{ 'Ä€é'|last }} +{{ ''|last }} --DATA-- return array('arr' => new ArrayObject(array(1, 2, 3, 4))) --EXPECT-- -- 1.7.2.5