1--TEST--
2replaceData() negative count
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = Dom\HTMLDocument::createEmpty();
9$comment = $dom->createComment("foobarbaz");
10$comment->replaceData(0, -1, "A");
11echo $dom->saveHtml($comment), "\n";
12$comment = $dom->createComment("foobarbaz");
13$comment->replaceData(2, -2, "A");
14echo $dom->saveHtml($comment), "\n";
15
16?>
17--EXPECT--
18<!--A-->
19<!--foA-->
20