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

1.1       misho       1: --TEST--
                      2: DOMComment::__construct() with constructor called twice.
                      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: $dom = new DOMDocument('1.0', 'UTF-8');
                     11: $element = $dom->appendChild(new DOMElement('root'));
                     12: $comment = new DOMComment("This is the first comment.");
                     13: $comment->__construct("This is the second comment.");
                     14: $comment = $element->appendChild($comment);
                     15: print $dom->saveXML();
                     16: ?>
                     17: --EXPECT--
                     18: <?xml version="1.0" encoding="UTF-8"?>
                     19: <root><!--This is the second comment.--></root>

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