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