1--TEST--
2NULL text content manipulation
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7$text = new DOMText();
8try {
9    var_dump($text->substringData(1, 0));
10} catch (DOMException $e) {
11    echo $e->getMessage(), "\n";
12}
13try {
14    var_dump($text->insertData(1, ""));
15} catch (DOMException $e) {
16    echo $e->getMessage(), "\n";
17}
18try {
19    var_dump($text->deleteData(1, 1));
20} catch (DOMException $e) {
21    echo $e->getMessage(), "\n";
22}
23try {
24    var_dump($text->replaceData(1, 1, ""));
25} catch (DOMException $e) {
26    echo $e->getMessage(), "\n";
27}
28?>
29--EXPECT--
30Index Size Error
31Index Size Error
32Index Size Error
33Index Size Error
34