From: root Date: Fri, 23 Aug 2013 01:06:58 +0000 (+0000) Subject: Test extension xmlrpc encode type double and string decode type string and int X-Git-Tag: php-5.6.0alpha1~248^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a4de9c03976310fb587099072a834d9b6cea546d;p=php Test extension xmlrpc encode type double and string decode type string and int --- diff --git a/ext/xmlrpc/tests/005.phpt b/ext/xmlrpc/tests/005.phpt new file mode 100644 index 0000000000..613dfde249 --- /dev/null +++ b/ext/xmlrpc/tests/005.phpt @@ -0,0 +1,47 @@ +--TEST-- +xmlrpc_encode() Simple test encode type double and String + +--CREDITS-- +Michel Araujo +#PHPSP 2013-08-22 + +--SKIPIF-- + + +--FILE-- + + + + + 3.24234 + + + + + + + + -3.24234 + + + + + + + + Is string + + + \ No newline at end of file diff --git a/ext/xmlrpc/tests/006.phpt b/ext/xmlrpc/tests/006.phpt new file mode 100644 index 0000000000..f33932d5a2 --- /dev/null +++ b/ext/xmlrpc/tests/006.phpt @@ -0,0 +1,29 @@ +--TEST-- +xmlrpc_decode() Simple test decode type string + +--CREDITS-- +Michel Araujo +#PHPSP 2013-08-22 + +--SKIPIF-- + + +--FILE-- + + + + + Is string + + + +XML; + +$response = xmlrpc_decode($xml); +echo $response; + +--EXPECT-- +Is string \ No newline at end of file diff --git a/ext/xmlrpc/tests/007.phpt b/ext/xmlrpc/tests/007.phpt new file mode 100644 index 0000000000..84c15a7d8a --- /dev/null +++ b/ext/xmlrpc/tests/007.phpt @@ -0,0 +1,29 @@ +--TEST-- +xmlrpc_decode() Simple test decode type int + +--CREDITS-- +Michel Araujo +#PHPSP 2013-08-22 + +--SKIPIF-- + + +--FILE-- + + + + + 1 + + + +XML; + +$response = xmlrpc_decode($xml); +echo $response; + +--EXPECT-- +1 \ No newline at end of file