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

1.1       misho       1: --TEST--
                      2: DOMDocumentType::publicId with empty value.
                      3: --CREDITS--
                      4: Eric Lee Stewart <ericleestewart@gmail.com>
                      5: # TestFest Atlanta 2009-05-25
                      6: --SKIPIF--
                      7: <?php require_once('skipif.inc'); ?>
                      8: --FILE--
                      9: <?php
                     10: $xml  = '<?xml version="1.0" encoding="UTF-8" ?>';
                     11: $xml .= '<!DOCTYPE chapter SYSTEM "http://www.xmlwriter.net/logo.gif">';
                     12: $xml .= '<chapter>1</chapter>';
                     13: $doc = new DOMDocument();
                     14: $doc->loadXML($xml);
                     15: $doctype = $doc->doctype;
                     16: var_dump($doctype->publicId);
                     17: ?>
                     18: --EXPECT--
                     19: string(0) ""

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