bug52656.phpt 315 B

1234567891011121314
  1. --TEST--
  2. Bug #52656 (DOMCdataSection does not work with splitText).
  3. --SKIPIF--
  4. <?php require_once('skipif.inc'); ?>
  5. --FILE--
  6. <?php
  7. $CData = new DOMCdataSection('splithere!');
  8. $CDataSplit = $CData->splitText(5);
  9. echo get_class($CDataSplit), "\n";
  10. var_dump($CDataSplit->data);
  11. ?>
  12. --EXPECT--
  13. DOMText
  14. string(5) "here!"