summaryrefslogtreecommitdiff
path: root/ext/dom/tests/bug50989.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dom/tests/bug50989.phpt')
-rw-r--r--ext/dom/tests/bug50989.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/dom/tests/bug50989.phpt b/ext/dom/tests/bug50989.phpt
new file mode 100644
index 0000000000..1ef554ac3e
--- /dev/null
+++ b/ext/dom/tests/bug50989.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Bug #50989 add support LIBXML_NOXMLDECL for DOMDocument::saveXML()
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+--FILE--
+<?php
+$dom = new DomDocument();
+$dom->loadXML("<foo />");
+
+print $dom->saveXML(null,LIBXML_NOXMLDECL);
+--EXPECT--
+<foo/> \ No newline at end of file