From 06dbabffb1d0cbae2a707968b2cd34a996d23171 Mon Sep 17 00:00:00 2001
From: David Flatz
Date: Wed, 3 Feb 2016 18:12:16 +0100
Subject: make tests compatible to php 5.3 std
---
tests/it_html.t | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
(limited to 'tests/it_html.t')
diff --git a/tests/it_html.t b/tests/it_html.t
index 4c06d9d..4f4da24 100755
--- a/tests/it_html.t
+++ b/tests/it_html.t
@@ -52,40 +52,40 @@ is(
);
is(
- div('arg' => "val: \x03, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \x09, \n", "\x02, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \x09, \n"),
+ div(array('arg' => "val: \x03, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \x09, \n", "\x02, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \x09, \n")),
"
\x02, \x0e, \x0f, \x0c, \xc2\x80, \xc2\x9f, \x09, \n
\n",
"blank unprintable characters and illegal utf8 in attributes but not in normal text"
);
is(
- div("arg\x03\x0e\x0f\xc2\x80\xc2\x9fendarg" => "value", "content"),
+ div(array("arg\x03\x0e\x0f\xc2\x80\xc2\x9fendarg" => "value", "content")),
"content
\n",
"don't blank unprintable characters and illegal utf8 in attribute names"
);
is(
- div('arg' => "abc äüö éá© œàè îôÇ xyz", "abc äüö éá© œàè îôÇ xyz"),
+ div(array('arg' => "abc äüö éá© œàè îôÇ xyz", "abc äüö éá© œàè îôÇ xyz")),
"abc äüö éá© œàè îôÇ xyz
\n",
- "leave legal utf8 intact",
+ "leave legal utf8 intact"
);
unset($GLOBALS['debug_utf8check']);
is(
- div('arg' => "value \xc2", "content"),
+ div(array('arg' => "value \xc2", "content")),
"content
\n",
- "handle single \\xc2 at end of attribute value",
+ "handle single \\xc2 at end of attribute value"
);
is(
- div("arg\x00end" => "value \x00 end", "content \x00 content end"),
+ div(array("arg\x00end" => "value \x00 end", "content \x00 content end")),
"content \x00 content end
\n",
- "handle 0-bytes",
+ "handle 0-bytes"
);
is(
- div('arg' => "& \" < > \n '", "& \" < > \n '"),
+ div(array('arg' => "& \" < > \n '", "& \" < > \n '")),
"& \" < > \n '
\n",
- "use html entities in attributes but not in normal text",
+ "use html entities in attributes but not in normal text"
);
# Test different html types
@@ -93,7 +93,7 @@ foreach (array('html5' => "
", 'html' => "
", 'xhtml' => "
$type));
- is (trim(br('flag' => true)), $value, "Check empty tag and attribute for $type");
+ is (trim(br(array('flag' => true))), $value, "Check empty tag and attribute for $type");
}
# XML generation
@@ -180,7 +180,7 @@ is(
is(
it_html::sanitize(''),
'',
- 'empty tags removal',
+ 'empty tags removal'
);
is(
--
cgit v1.2.3