Annotation of embedaddon/php/ext/dom/tests/DOMImplementation_createDocumentType_basic.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: DOMImplementation::createDocumentType()
                      3: --SKIPIF--
                      4: <?php
                      5: include('skipif.inc');
                      6: ?>
                      7: --FILE--
                      8: <?php
                      9: $imp = new DOMImplementation();
                     10: $doctype = $imp->createDocumentType("html", 
                     11:        "-//W3C//DTD XHTML 1.0 Strict//EN", 
                     12:        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd");
                     13: $doc = $imp->createDocument(null, 'html', $doctype);
                     14: echo $doc->saveHTML();
                     15: ?>
                     16: --EXPECTF--
                     17: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
                     18: <html></html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>