From e22c139fe09db7e74ad027db49d76921fc1a19fd Mon Sep 17 00:00:00 2001 From: root Date: Fri, 23 Aug 2013 01:06:58 +0000 Subject: [PATCH] Test extension xmlrpc encode type double and string decode type string and int --- ext/xmlrpc/tests/005.phpt | 47 +++++++++++++++++++++++++++++++++++++++ ext/xmlrpc/tests/006.phpt | 29 ++++++++++++++++++++++++ ext/xmlrpc/tests/007.phpt | 29 ++++++++++++++++++++++++ 3 files changed, 105 insertions(+) create mode 100644 ext/xmlrpc/tests/005.phpt create mode 100644 ext/xmlrpc/tests/006.phpt create mode 100644 ext/xmlrpc/tests/007.phpt diff --git a/ext/xmlrpc/tests/005.phpt b/ext/xmlrpc/tests/005.phpt new file mode 100644 index 00000000000..613dfde2499 --- /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 00000000000..f33932d5a21 --- /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 00000000000..84c15a7d8a3 --- /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