From e735e44f52df9b98e841729234e0742dae359da0 Mon Sep 17 00:00:00 2001 From: Christian Stocker Date: Mon, 27 Oct 2003 17:36:44 +0000 Subject: [PATCH] added html test --- ext/dom/tests/dom005.phpt | 31 +++++++++++++++++++++++++++++++ ext/dom/tests/test.html | 9 +++++++++ 2 files changed, 40 insertions(+) create mode 100644 ext/dom/tests/dom005.phpt create mode 100644 ext/dom/tests/test.html diff --git a/ext/dom/tests/dom005.phpt b/ext/dom/tests/dom005.phpt new file mode 100644 index 0000000000..29e5aa76e1 --- /dev/null +++ b/ext/dom/tests/dom005.phpt @@ -0,0 +1,31 @@ +--TEST-- +Test 5: HTML Test +--SKIPIF-- + +--FILE-- +loadHTMLFile(dirname(__FILE__)."/test.html"); +print "--- save as XML\n"; + +print $dom->saveXML(); +print "--- save as HTML\n"; + +print $dom->saveHTML(); +--EXPECT-- +--- save as XML + + +Hello world

+This is a not well-formed
+html files with undeclared entities  +

+--- save as HTML + + +Hello world +

+This is a not well-formed
+html files with undeclared entities  +

+ diff --git a/ext/dom/tests/test.html b/ext/dom/tests/test.html new file mode 100644 index 0000000000..fe6d0d3dbc --- /dev/null +++ b/ext/dom/tests/test.html @@ -0,0 +1,9 @@ + + +Hello world + + +This is a not well-formed
+html files with undeclared entities  + + -- 2.50.1