summaryrefslogtreecommitdiff
path: root/tests/autoprepend.t
diff options
context:
space:
mode:
authorUrban Müller2018-06-21 16:42:32 +0200
committerUrban Müller2018-06-21 16:43:32 +0200
commit3dabbbd5325c9fad9582cd44b1da68dece78eaa0 (patch)
tree92d951b948f0e01dc6b7ae3f11b9c03034edb69a /tests/autoprepend.t
parent455b15f7a850a58ef667ad170732769043eb1522 (diff)
downloaditools-3dabbbd5325c9fad9582cd44b1da68dece78eaa0.tar.gz
itools-3dabbbd5325c9fad9582cd44b1da68dece78eaa0.tar.bz2
itools-3dabbbd5325c9fad9582cd44b1da68dece78eaa0.zip
no reason for different naming
Diffstat (limited to 'tests/autoprepend.t')
-rwxr-xr-xtests/autoprepend.t38
1 files changed, 0 insertions, 38 deletions
diff --git a/tests/autoprepend.t b/tests/autoprepend.t
deleted file mode 100755
index bf40605..0000000
--- a/tests/autoprepend.t
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/www/server/bin/php -qC
-<?php
-
-it_text::init();
-$GLOBALS['it_text']->statictext = array(
- '_' => array("de" => "Deutsch", "en" => "English"),
- 'foo' => array("de" => "bar {v1}", "en" => "qux {v1}"),
-);
-
-is(
- T('foo'),
- "bar {v1}",
- "simple T()"
-);
-
-is(
- T('foo', 'en'),
- "qux {v1}",
- "simple T() with language"
-);
-
-is(
- T('foo', array('v1' => "gna<bber")),
- "bar gna&lt;bber",
- "T() with quoted values"
-);
-
-is(
- T('foo', array('v1' => "gna<bber"), 'en'),
- "qux gna&lt;bber",
- "T() with with quoted values and language"
-);
-
-is(
- T('foo', 'en', array('v1' => "gna<bber")),
- "qux gna&lt;bber",
- "T() with with language and quoted values"
-);