Annotation of embedaddon/php/ext/dom/tests/DOMDocument_createProcessingInstruction_error.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: DomDocument::createProcessingInstruction() - error test for DomDocument::createProcessingInstruction()
                      3: --CREDITS--
                      4: Muhammad Khalid Adnan
                      5: # TestFest 2008
                      6: --SKIPIF--
                      7: <?php require_once('skipif.inc'); ?>
                      8: --FILE--
                      9: <?php
                     10: 
                     11: $doc = new DOMDocument;
                     12: 
                     13: $node = $doc->createElement("para");
                     14: $newnode = $doc->appendChild($node);
                     15: 
                     16: try {
                     17:     $test_proc_inst =
                     18:         $doc->createProcessingInstruction( "bla bla bla" );
                     19:     $node->appendChild($test_proc_inst);
                     20: 
                     21:     echo $doc->saveXML();
                     22: }
                     23: catch (DOMException $e)
                     24: {
                     25:     echo 'Test failed!', PHP_EOL;
                     26: }
                     27: 
                     28: ?>
                     29: --EXPECT--
                     30: Test failed!
                     31: 

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