From: SVN Migration Date: Sat, 28 Jun 2003 06:55:48 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. X-Git-Tag: php-4.3.3RC2~231 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=056e268cb32d6312b3daac602df80cbb916cf6af;p=php This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- diff --git a/ext/wddx/tests/001.phpt b/ext/wddx/tests/001.phpt new file mode 100644 index 0000000000..857cc2f304 --- /dev/null +++ b/ext/wddx/tests/001.phpt @@ -0,0 +1,57 @@ +--TEST-- +wddz deserialization test +--FILE-- + +--EXPECT-- +array(11) { + ["aNull"]=> + NULL + ["aString"]=> + string(8) "a string" + ["aNumber"]=> + float(-12.456) + ["aDateTime"]=> + int(897600732) + ["aDateTime2"]=> + string(19) "1930-06-12T04:32:12" + ["aDateTime3"]=> + string(19) "2040-06-12T04:32:12" + ["aBoolean"]=> + bool(true) + ["anArray"]=> + array(2) { + [0]=> + int(10) + [1]=> + string(14) "second element" + } + ["aBinary"]=> + string(11) "binary data" + ["anObject"]=> + array(2) { + ["s"]=> + string(8) "a string" + ["n"]=> + float(-12.456) + } + ["aRecordset"]=> + array(2) { + ["NAME"]=> + array(2) { + [0]=> + string(8) "John Doe" + [1]=> + string(8) "Jane Doe" + } + ["AGE"]=> + array(2) { + [0]=> + int(34) + [1]=> + int(31) + } + } +} diff --git a/ext/wddx/tests/wddx.xml b/ext/wddx/tests/wddx.xml new file mode 100644 index 0000000000..8713159636 --- /dev/null +++ b/ext/wddx/tests/wddx.xml @@ -0,0 +1,60 @@ + + + +
+ + + + + + + a string + + + -12.456 + + + 1998-06-12T04:32:12 + + + 1930-06-12T04:32:12 + + + 2040-06-12T04:32:12 + + + + + + + 10 + second element + + + + YmluYXJ5IGRhdGE= + + + + + a string + + + -12.456 + + + + + + + John Doe + Jane Doe + + + 34 + 31 + + + + +