From bbc8b31566fcae832081f1d890dfa6fd5c5c842a Mon Sep 17 00:00:00 2001
From: Christian Schneider
Date: Fri, 9 Feb 2007 13:26:17 +0000
Subject: Renamed tests to match file names of class tested
---
tests/it_html.t | 86 ---------------------------------------------------------
1 file changed, 86 deletions(-)
delete mode 100755 tests/it_html.t
(limited to 'tests/it_html.t')
diff --git a/tests/it_html.t b/tests/it_html.t
deleted file mode 100755
index 95d615c..0000000
--- a/tests/it_html.t
+++ /dev/null
@@ -1,86 +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"),
- '
',
- "it_html inheritance"
-);
-
-
-?>
--
cgit v1.2.3