From: Fabien Potencier Date: Mon, 6 Feb 2012 09:03:50 +0000 (+0100) Subject: added some unit tests for previous merge X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=3561a45c859a9f5e81823320e6f2c0c24e9c95ee;p=web%2Fkonrad%2Ftwig.git added some unit tests for previous merge --- diff --git a/test/Twig/Tests/Fixtures/filters/slice.test b/test/Twig/Tests/Fixtures/filters/slice.test index ae64b26..0e3a563 100644 --- a/test/Twig/Tests/Fixtures/filters/slice.test +++ b/test/Twig/Tests/Fixtures/filters/slice.test @@ -13,6 +13,8 @@ {{ [1, 2, 3, 4]|slice(1)|join('') }} {{ [1, 2, 3, 4][1:]|join('') }} +{{ '1234'|slice(1) }} +{{ '1234'[1:] }} --DATA-- return array('start' => 1, 'length' => 2, 'arr' => new ArrayObject(array(1, 2, 3, 4))) --EXPECT-- @@ -28,3 +30,5 @@ return array('start' => 1, 'length' => 2, 'arr' => new ArrayObject(array(1, 2, 3 234 234 +234 +234