Annotation of embedaddon/php/ext/dom/tests/DOMCharacterData_data_basic_002.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Create CDATA section and change it using DOMcreateCDATASection
        !             3: --CREDITS--
        !             4: Nic Rosental nicrosental@gmail.com
        !             5: # TestFest Atlanta 2009-5-28 
        !             6: --SKIPIF--
        !             7: <?php require_once('skipif.inc'); ?>
        !             8: --FILE--
        !             9: <?php
        !            10: 
        !            11: $document = new DOMDocument;
        !            12: $root = $document->createElement('root');
        !            13: $document->appendChild($root);
        !            14: 
        !            15: $cdata = $document->createCDATASection('t');
        !            16: $root->appendChild($cdata);
        !            17: print $document->saveXML()."\n";
        !            18: 
        !            19: $cdata->data = 100;
        !            20: print $document->saveXML()."\n";
        !            21: 
        !            22: ?>
        !            23: --EXPECT--
        !            24: <?xml version="1.0"?>
        !            25: <root><![CDATA[t]]></root>
        !            26: 
        !            27: <?xml version="1.0"?>
        !            28: <root><![CDATA[100]]></root>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>