summaryrefslogtreecommitdiff
path: root/ext/tidy/tests/003.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tidy/tests/003.phpt')
-rw-r--r--ext/tidy/tests/003.phpt21
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/tidy/tests/003.phpt b/ext/tidy/tests/003.phpt
new file mode 100644
index 0000000..7201d6a
--- /dev/null
+++ b/ext/tidy/tests/003.phpt
@@ -0,0 +1,21 @@
+--TEST--
+tidy_clean_repair()
+--SKIPIF--
+<?php if (!extension_loaded("tidy")) print "skip"; ?>
+--FILE--
+<?php
+
+ $a = tidy_parse_string("<HTML></HTML>");
+ tidy_clean_repair($a);
+ echo tidy_get_output($a);
+
+?>
+--EXPECT--
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<html>
+<head>
+<title></title>
+</head>
+<body>
+</body>
+</html>