1--TEST--
2Test inserting data into a DOMComment basic test
3--CREDITS--
4Andrew Larssen <al@larssen.org>
5London TestFest 2008
6--SKIPIF--
7<?php require_once('skipif.inc'); ?>
8--FILE--
9<?php
10
11//correct offset
12$dom = new DomDocument();
13$comment = $dom->createComment('test-comment');
14$comment->insertData(4,'-inserted');
15$dom->appendChild($comment);
16echo $dom->saveXML();
17
18?>
19--EXPECT--
20<?xml version="1.0"?>
21<!--test-inserted-comment-->
22