Skip to content

Commit

Permalink
[Twig][Tests][Fixtures][filters] Added empty string tests for "first"…
Browse files Browse the repository at this point in the history
… and "last" filters
  • Loading branch information
ureimers authored and fabpot committed May 15, 2014
1 parent 6af8182 commit 0db5c31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/Twig/Tests/Fixtures/filters/first.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
{{ '1234'|first }}
{{ arr|first }}
{{ 'Ä€é'|first }}
{{ ''|first }}
--DATA--
return array('arr' => new ArrayObject(array(1, 2, 3, 4)))
--EXPECT--
Expand Down
1 change: 1 addition & 0 deletions test/Twig/Tests/Fixtures/filters/last.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
{{ '1234'|last }}
{{ arr|last }}
{{ 'Ä€é'|last }}
{{ ''|last }}
--DATA--
return array('arr' => new ArrayObject(array(1, 2, 3, 4)))
--EXPECT--
Expand Down

0 comments on commit 0db5c31

Please sign in to comment.