1--TEST--
2DOMParentNode::append()
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7declare(strict_types=1);
8
9require_once("dom_test.inc");
10
11$dom = new DOMDocument;
12$dom->loadXML('<test><mark/><mark /><mark /></test>');
13
14$element = $dom->documentElement;
15$element->append(
16  $dom->createElement('element', 'content'),
17  'content'
18);
19
20var_dump($dom->documentElement->childElementCount);
21print_node_list_compact($element->childNodes);
22
23$element->append(
24  $dom->createElement('element', 'content'),
25  'content'
26);
27var_dump($dom->documentElement->childElementCount);
28?>
29--EXPECT--
30int(4)
31<mark>
32</mark>
33<mark>
34</mark>
35<mark>
36</mark>
37<element>
38  content
39</element>
40content
41int(5)
42