From 7722bd06a2797d06529d21fc939cd84ae98361fe Mon Sep 17 00:00:00 2001
From: Christian Schneider
Date: Thu, 30 Aug 2007 13:43:13 +0000
Subject:
---
tests/it_html.t | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
(limited to 'tests/it_html.t')
diff --git a/tests/it_html.t b/tests/it_html.t
index 965e4a1..cd934be 100755
--- a/tests/it_html.t
+++ b/tests/it_html.t
@@ -6,10 +6,10 @@
require 'searchlib/search_test.class';
# Traditional html generation
-new it_html('htmltype' => "html");
+new it_html(array('htmltype' => "html"));
is(
- a('href' => "&foo", 'true' => true, 'false' => false, 'null' => null, 'empty' => "", "bar"),
+ a(array('href' => "&foo", 'true' => true, 'false' => false, 'null' => null, 'empty' => ""), "bar"),
'bar',
"tag with attributes"
);
@@ -21,7 +21,7 @@ is(
);
is(
- img('src' => "foo.png"),
+ img(array('src' => "foo.png")),
'',
"empty link tag"
);
@@ -40,7 +40,7 @@ is(
# XML generation
unset($GLOBALS['it_html']);
-new it_html('htmltype' => "xhtml", 'tags' => "xmltest");
+new it_html(array('htmltype' => "xhtml", 'tags' => "xmltest"));
is(
xmltest(),
@@ -55,7 +55,7 @@ is(
);
is(
- xmltest('href' => "&foo", 'true' => true, 'false' => false, 'null' => null, 'empty' => ""),
+ xmltest(array('href' => "&foo", 'true' => true, 'false' => false, 'null' => null, 'empty' => "")),
'' . "\n",
"xmltest tag with attributes"
);
@@ -65,17 +65,17 @@ class myhtml extends it_html
{
function myimg($args)
{
- array_unshift($args, 'alt' => "ALT", 'bar' => "BAR");
+ array_unshift($args, array('alt' => "ALT", 'bar' => "BAR"));
return parent::img($args);
}
}
unset($GLOBALS['it_html']);
-new myhtml('htmltype' => "html");
+new myhtml(array('htmltype' => "html"));
is(
- myimg('src' => "foo.gif", 'alt' => "foo"),
+ myimg(array('src' => "foo.gif", 'alt' => "foo")),
'',
"it_html inheritance"
);
@@ -90,7 +90,7 @@ is(
);
is(
- U("/foo.html", 'bar' => array('gna' => 42, 'qux' => array('quux' => "", 'gnöp' => "fasel"))),
+ U("/foo.html", array('bar' => array('gna' => 42, 'qux' => array('quux' => "", 'gnöp' => "fasel")))),
'/foo.html?bar[gna]=42&bar[qux][quux]=%3CZ%FCrich%3E&bar[qux][gn%F6p]=fasel',
'U() with nested arrays'
);
--
cgit v1.2.3