php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /php-7.1.11/ext/dom/tests/ |
files >> //php-7.1.11/ext/dom/tests/DOMComment_replaceData_basic.phpt |
--TEST-- Test replacing data into a DOMComment basic test --CREDITS-- Andrew Larssen <al@larssen.org> London TestFest 2008 --SKIPIF-- <?php require_once('skipif.inc'); ?> --FILE-- <?php $dom = new DomDocument(); $comment = $dom->createComment('test-comment'); $comment->replaceData(4,1,'replaced'); $dom->appendChild($comment); echo $dom->saveXML(); // Replaces rest of string if count is greater than length of existing string $dom = new DomDocument(); $comment = $dom->createComment('test-comment'); $comment->replaceData(0,50,'replaced'); $dom->appendChild($comment); echo $dom->saveXML(); ?> --EXPECTF-- <?xml version="1.0"?> <!--testreplacedcomment--> <?xml version="1.0"?> <!--replaced-->y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`