1--TEST--
2DOMNode::after()
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7require_once("dom_test.inc");
8
9$dom = new DOMDocument;
10$dom->loadXML('<test><mark>first</mark><mark>second</mark></test>');
11
12$element = $dom->documentElement->firstElementChild;
13$secondMark = $dom->documentElement->lastElementChild;
14
15$element->after(
16  'text inserted after',
17  $dom->createElement('inserted-after', 'content')
18);
19
20$secondMark->after('text inserted after second');
21
22print_node_list_compact($dom->documentElement->childNodes);
23?>
24--EXPECT--
25<mark>
26  first
27</mark>
28text inserted after
29<inserted-after>
30  content
31</inserted-after>
32<mark>
33  second
34</mark>
35text inserted after second
36