1--TEST--
2DOMNode: Element Siblings
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7require_once("dom_test.inc");
8
9$dom = new DOMDocument;
10$dom->loadXML('<test>foo<bar>FirstElement</bar><bar>LastElement</bar>bar</test>');
11
12$element = $dom->documentElement;
13print_node($element->firstElementChild->nextElementSibling);
14print_node($element->lastElementChild->previousElementSibling);
15?>
16--EXPECT--
17Node Name: bar
18Node Type: 1
19Num Children: 1
20Node Content: LastElement
21
22Node Name: bar
23Node Type: 1
24Num Children: 1
25Node Content: FirstElement
26