added some unit tests
authorFabien Potencier <fabien.potencier@gmail.com>
Tue, 28 Feb 2012 20:36:27 +0000 (21:36 +0100)
committerFabien Potencier <fabien.potencier@gmail.com>
Tue, 28 Feb 2012 22:19:50 +0000 (23:19 +0100)
test/Twig/Tests/Fixtures/filters/length_utf8.test [new file with mode: 0644]

diff --git a/test/Twig/Tests/Fixtures/filters/length_utf8.test b/test/Twig/Tests/Fixtures/filters/length_utf8.test
new file mode 100644 (file)
index 0000000..5d5e243
--- /dev/null
@@ -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