From 831caad4329baf4e5fc26c4d28cb6ddc7c4598b6 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 5 Apr 2004 14:10:19 +0000 Subject: [PATCH] Restore wddx tests, without the troublesome date conversions. --- ext/wddx/tests/001.phpt | 51 +++++++++++++++++++++++++++++++++++++++++ ext/wddx/tests/wddx.xml | 51 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 ext/wddx/tests/001.phpt create mode 100644 ext/wddx/tests/wddx.xml diff --git a/ext/wddx/tests/001.phpt b/ext/wddx/tests/001.phpt new file mode 100644 index 0000000000..b42e86478b --- /dev/null +++ b/ext/wddx/tests/001.phpt @@ -0,0 +1,51 @@ +--TEST-- +wddx deserialization test +--FILE-- + +--EXPECT-- +array(8) { + ["aNull"]=> + NULL + ["aString"]=> + string(8) "a string" + ["aNumber"]=> + float(-12.456) + ["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..7768502666 --- /dev/null +++ b/ext/wddx/tests/wddx.xml @@ -0,0 +1,51 @@ + + + +
+ + + + + + + a string + + + -12.456 + + + + + + + 10 + second element + + + + YmluYXJ5IGRhdGE= + + + + + a string + + + -12.456 + + + + + + + John Doe + Jane Doe + + + 34 + 31 + + + + + -- 2.50.1