summaryrefslogtreecommitdiff
path: root/tests/it_text.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/it_text.t')
-rwxr-xr-xtests/it_text.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/it_text.t b/tests/it_text.t
index bc4d5c0..5629d51 100755
--- a/tests/it_text.t
+++ b/tests/it_text.t
@@ -16,3 +16,6 @@ is(it_text::transmogrify("X{foo}{bar}", array('foo' => 1, 'bar' => 2)), "X12");
is(it_text::transmogrify("X{foo}", array('foo' => "&")), "X&");
is(it_text::transmogrify("X{x}", $obj), "Xattr");
is(it_text::transmogrify("X{y.z}", $obj), "Xattr");
+is(it_text::transmogrify("{mb_strlen(xxx)}", null, null, ['mb_strlen' => 1]), "3");
+is(it_text::transmogrify("{it::ucfirst(xxx)}", null, null, ['it::ucfirst' => 1]), "Xxx");
+is(it_text::transmogrify("{format violation}"), '{format violation}');