summaryrefslogtreecommitdiff
path: root/ext/dom/tests/DOMCharacterData_deleteData_basic_001.phpt
blob: fafab9618d9544fe2f83fd0fbe31deb5f15c3deb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
DOMCharacterData::deleteData() with count exceeding string size.
--CREDITS--
Eric Lee Stewart <ericleestewart@gmail.com>
# TestFest Atlanta 2009-05-24
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$document = new DOMDocument;
$root = $document->createElement('root');
$document->appendChild($root);

$cdata = $document->createCDATASection('test');
$root->appendChild($cdata);
$cdata->deleteData(1, 10);
var_dump($cdata->data);
?>
--EXPECTF--
%unicode|string%(%d) "t"