From: Ulf Date: Thu, 15 May 2014 18:06:18 +0000 (+0200) Subject: [Twig][Tests][Fixtures][filters] Added empty string tests for "first" and "last"... X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=0db5c3100bd76c0a8e1041fc176d72adc881f0a7;p=web%2Fkonrad%2Ftwig.git [Twig][Tests][Fixtures][filters] Added empty string tests for "first" and "last" filters --- 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--