1--TEST--
2DOMNode::remove()
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7require_once("dom_test.inc");
8
9$dom = new DOMDocument;
10$dom->loadXML('<test><one>first</one><two>second</two></test>');
11
12$element = $dom->documentElement;
13print_node($element->firstChild);
14$returnValue = $element->firstChild->remove();
15print_node($element->firstChild);
16var_dump($returnValue);
17?>
18--EXPECT--
19Node Name: one
20Node Type: 1
21Num Children: 1
22Node Content: first
23
24Node Name: two
25Node Type: 1
26Num Children: 1
27Node Content: second
28
29NULL
30