1--TEST--
2Test processing instruction character data manipulation
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = Dom\XMLDocument::createFromString('<root><?pi value?></root>');
9
10$pi = $dom->documentElement->firstChild;
11
12echo $pi->substringData(0, 3), "\n";
13$pi->appendData('foobar');
14echo $pi->textContent, "\n";
15$pi->insertData(6, 'oooooo');
16echo $pi->textContent, "\n";
17$pi->deleteData(0, strlen('value'));
18echo $pi->textContent, "\n";
19$pi->replaceData(1, 8, 'oo');
20echo $pi->textContent, "\n";
21
22?>
23--EXPECT--
24val
25valuefoobar
26valuefoooooooobar
27foooooooobar
28foobar
29