From 806a5297e7e99d455b97a4f0acaba2f40f470584 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Thu, 26 Jul 2007 13:02:24 +0000 Subject: renamed files for autoloader --- tests/html.t | 99 ------------------------------------------------------------ 1 file changed, 99 deletions(-) delete mode 100755 tests/html.t (limited to 'tests/html.t') diff --git a/tests/html.t b/tests/html.t deleted file mode 100755 index 965e4a1..0000000 --- a/tests/html.t +++ /dev/null @@ -1,99 +0,0 @@ -#!/www/server/bin/php -qC - "html"); - -is( - a('href' => "&foo", 'true' => true, 'false' => false, 'null' => null, 'empty' => "", "bar"), - 'bar', - "tag with attributes" -); - -is( - div(), - "
\n", - "empty script tag" -); - -is( - img('src' => "foo.png"), - '', - "empty link tag" -); - -is( - tag('link'), - "\n", - "empty link tag" -); - -is( - tag('link', "foo"), - "foo\n", - "link tag with data" -); - -# XML generation -unset($GLOBALS['it_html']); -new it_html('htmltype' => "xhtml", 'tags' => "xmltest"); - -is( - xmltest(), - "\n", - "empty xmltest tag" -); - -is( - xmltest("foo"), - "foo\n", - "empty xmltest tag" -); - -is( - xmltest('href' => "&foo", 'true' => true, 'false' => false, 'null' => null, 'empty' => ""), - '' . "\n", - "xmltest tag with attributes" -); - -# Inheriting and extending it_html -class myhtml extends it_html -{ -function myimg($args) -{ - array_unshift($args, 'alt' => "ALT", 'bar' => "BAR"); - - return parent::img($args); -} -} - -unset($GLOBALS['it_html']); -new myhtml('htmltype' => "html"); - -is( - myimg('src' => "foo.gif", 'alt' => "foo"), - 'foo', - "it_html inheritance" -); - -is( - it_html::sanitize('

swisspics posted < < ä & yesterday a photo tag missmatch:



- -

Wolken

-'), - ' swisspics posted < < ä & yesterday a photo tag missmatch:

', - 'it_html::sanitize tag soup' -); - -is( - U("/foo.html", '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