1--TEST--
2DomDocument::createProcessingInstruction() - basic test for DomDocument::createProcessingInstruction()
3--CREDITS--
4Muhammad 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$test_proc_inst0 =
17    $doc->createProcessingInstruction( "blablabla" );
18$node->appendChild($test_proc_inst0);
19
20$test_proc_inst1 =
21    $doc->createProcessingInstruction( "blablabla", "datadata" );
22$node->appendChild($test_proc_inst1);
23
24echo $doc->saveXML();
25
26?>
27--EXPECT--
28<?xml version="1.0"?>
29<para><?blablabla?><?blablabla datadata?></para>
30
31