1--TEST--
2DOMImplementation::createDocumentType()
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7$imp = new DOMImplementation();
8$doctype = $imp->createDocumentType("html",
9    "-//W3C//DTD XHTML 1.0 Strict//EN",
10    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd");
11$doc = $imp->createDocument(null, 'html', $doctype);
12echo $doc->saveHTML();
13
14$doctype = $imp->createDocumentType("html");
15$doc = $imp->createDocument(null, 'html', $doctype);
16echo $doc->saveHTML();
17
18$doctype = $imp->createDocumentType("html", "", "");
19$doc = $imp->createDocument(null, 'html', $doctype);
20echo $doc->saveHTML();
21
22?>
23--EXPECT--
24<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
25<html></html>
26<!DOCTYPE html>
27<html></html>
28<!DOCTYPE html>
29<html></html>
30