From: Fabien Potencier Date: Tue, 28 Feb 2012 20:36:27 +0000 (+0100) Subject: added some unit tests X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=9573f2213c3254c9d6ba4a077b4e3b6331224fb7;p=web%2Fkonrad%2Ftwig.git added some unit tests --- diff --git a/test/Twig/Tests/Fixtures/filters/length_utf8.test b/test/Twig/Tests/Fixtures/filters/length_utf8.test new file mode 100644 index 0000000..5d5e243 --- /dev/null +++ b/test/Twig/Tests/Fixtures/filters/length_utf8.test @@ -0,0 +1,12 @@ +--TEST-- +"length" filter +--CONDITION-- +function_exists('mb_get_info') +--TEMPLATE-- +{{ string|length }} +{{ markup|length }} +--DATA-- +return array('string' => 'été', 'markup' => new Twig_Markup('foo', 'UTF-8')) +--EXPECT-- +3 +3