From 9573f2213c3254c9d6ba4a077b4e3b6331224fb7 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 28 Feb 2012 21:36:27 +0100 Subject: [PATCH] added some unit tests --- test/Twig/Tests/Fixtures/filters/length_utf8.test | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) create mode 100644 test/Twig/Tests/Fixtures/filters/length_utf8.test 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 -- 1.7.2.5