php-src/ext/dom/tests/DOMCharacterData_substringData_basic_001.phpt

22 lines
450 B
Plaintext
Raw Normal View History

2009-08-27 01:17:58 +08:00
--TEST--
2018-10-15 00:03:31 +08:00
__DOMCharacterData::substringData pull mid section of string
2009-08-27 01:17:58 +08:00
--CREDITS--
Nic Rosental nicrosental@gmail.com
2018-10-15 00:03:31 +08:00
# TestFest Atlanta 2009-5-28
2009-08-27 01:17:58 +08:00
--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