1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00
Files
archived-php-src/ext/dom/tests/DOMCharacterData_substringData_basic_001.phpt
T
2018-10-14 19:44:14 +02:00

21 lines
449 B
PHP

--TEST--
__DOMCharacterData::substringData pull mid section of string
--CREDITS--
Nic Rosental nicrosental@gmail.com
# TestFest Atlanta 2009-5-28
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
$document = new DOMDocument;
$root = $document->createElement('root');
$document->appendChild($root);
$cdata = $document->createCDATASection('testfest');
$root->appendChild($cdata);
print $cdata->substringData(1, 6);
?>
--EXPECT--
estfes