summaryrefslogtreecommitdiff
path: root/test/autoprepend.t
diff options
context:
space:
mode:
Diffstat (limited to 'test/autoprepend.t')
-rwxr-xr-xtest/autoprepend.t14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/autoprepend.t b/test/autoprepend.t
index bf40605..7cb33e5 100755
--- a/test/autoprepend.t
+++ b/test/autoprepend.t
@@ -2,10 +2,10 @@
<?php
it_text::init();
-$GLOBALS['it_text']->statictext = array(
- '_' => array("de" => "Deutsch", "en" => "English"),
- 'foo' => array("de" => "bar {v1}", "en" => "qux {v1}"),
-);
+$GLOBALS['it_text']->statictext = [
+ '_' => ["de" => "Deutsch", "en" => "English"],
+ 'foo' => ["de" => "bar {v1}", "en" => "qux {v1}"],
+];
is(
T('foo'),
@@ -20,19 +20,19 @@ is(
);
is(
- T('foo', array('v1' => "gna<bber")),
+ T('foo', ['v1' => "gna<bber"]),
"bar gna&lt;bber",
"T() with quoted values"
);
is(
- T('foo', array('v1' => "gna<bber"), 'en'),
+ T('foo', ['v1' => "gna<bber"], 'en'),
"qux gna&lt;bber",
"T() with with quoted values and language"
);
is(
- T('foo', 'en', array('v1' => "gna<bber")),
+ T('foo', 'en', ['v1' => "gna<bber"]),
"qux gna&lt;bber",
"T() with with language and quoted values"
);