From: Christian Stocker Date: Mon, 27 Oct 2003 17:36:44 +0000 (+0000) Subject: added html test X-Git-Tag: RELEASE_2_0_0RC1~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e735e44f52df9b98e841729234e0742dae359da0;p=php added html test --- 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  + +