summaryrefslogtreecommitdiff
path: root/ext/xmlrpc/tests/006.phpt
blob: f33932d5a210fd0afd83471ccb84546ecc302915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--TEST--
xmlrpc_decode() Simple test decode type string

--CREDITS--
Michel Araujo <araujo_michel@yahoo.com.br>
#PHPSP 2013-08-22

--SKIPIF--
<?php if (!extension_loaded("xmlrpc")) print "skip"; ?>

--FILE--
<?php

$xml = <<<XML
<?xml version="1.0" encoding="utf-8"?>
<params>
<param>
 <value>
  <string>Is string</string>
 </value>
</param>
</params>
XML;

$response = xmlrpc_decode($xml);
echo $response;

--EXPECT--
Is string