From: Dmitry Stogov Date: Wed, 28 Jan 2004 13:33:48 +0000 (+0000) Subject: Test suite for XML Schema and SOAP encoding/decoding X-Git-Tag: php-5.0.0b4RC1~258 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=84f259b448a1d50433b7aa5b74c88b138615b1a3;p=php Test suite for XML Schema and SOAP encoding/decoding --- diff --git a/ext/soap/tests/schema/schema001.phpt b/ext/soap/tests/schema/schema001.phpt new file mode 100644 index 0000000000..9f2b7e5235 --- /dev/null +++ b/ext/soap/tests/schema/schema001.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP XML Schema 1: simpleType/restriction +--SKIPIF-- + +--FILE-- + + + +EOF; +test_schema($schema,'type="tns:testType"',123.5); +echo "ok"; +?> +--EXPECT-- + +123 +int(123) +ok diff --git a/ext/soap/tests/schema/schema002.phpt b/ext/soap/tests/schema/schema002.phpt new file mode 100644 index 0000000000..41f3bbe3fa --- /dev/null +++ b/ext/soap/tests/schema/schema002.phpt @@ -0,0 +1,23 @@ +--TEST-- +SOAP XML Schema 2: simpleType/restriction (reference to type) +--SKIPIF-- + +--FILE-- + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',123.5); +echo "ok"; +?> +--EXPECT-- + +123 +int(123) +ok diff --git a/ext/soap/tests/schema/schema003.phpt b/ext/soap/tests/schema/schema003.phpt new file mode 100644 index 0000000000..75991001e0 --- /dev/null +++ b/ext/soap/tests/schema/schema003.phpt @@ -0,0 +1,23 @@ +--TEST-- +SOAP XML Schema 3: simpleType/restriction (reference to type, that is not defined yet) +--SKIPIF-- + +--FILE-- + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',123.5); +echo "ok"; +?> +--EXPECT-- + +123 +int(123) +ok diff --git a/ext/soap/tests/schema/schema004.phpt b/ext/soap/tests/schema/schema004.phpt new file mode 100644 index 0000000000..b851f76050 --- /dev/null +++ b/ext/soap/tests/schema/schema004.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP XML Schema 4: simpleType/restriction (reference to undefined type) +--SKIPIF-- + +--FILE-- + + + +EOF; +test_schema($schema,'type="tns:testType"',123.5); +echo "ok"; +?> +--EXPECT-- + +123.5 +string(5) "123.5" +ok \ No newline at end of file diff --git a/ext/soap/tests/schema/schema005.phpt b/ext/soap/tests/schema/schema005.phpt new file mode 100644 index 0000000000..1db0c62f99 --- /dev/null +++ b/ext/soap/tests/schema/schema005.phpt @@ -0,0 +1,24 @@ +--TEST-- +SOAP XML Schema 5: simpleType/restriction (inline type) +--SKIPIF-- + +--FILE-- + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',123.5); +echo "ok"; +?> +--EXPECT-- + +123 +int(123) +ok diff --git a/ext/soap/tests/schema/schema006.phpt b/ext/soap/tests/schema/schema006.phpt new file mode 100644 index 0000000000..e41f27545b --- /dev/null +++ b/ext/soap/tests/schema/schema006.phpt @@ -0,0 +1,25 @@ +--TEST-- +SOAP XML Schema 6: simpleType/restriction (referenced by ellement) +--SKIPIF-- + +--FILE-- + + + + + + + + +EOF; +test_schema($schema,'element="tns:testElement"',123.5); +echo "ok"; +?> +--EXPECT-- + +123 +int(123) +ok diff --git a/ext/soap/tests/schema/schema007.phpt b/ext/soap/tests/schema/schema007.phpt new file mode 100644 index 0000000000..fd93c7aa8e --- /dev/null +++ b/ext/soap/tests/schema/schema007.phpt @@ -0,0 +1,25 @@ +--TEST-- +SOAP XML Schema 7: simpleType/restriction (referenced by ellement) +--SKIPIF-- + +--FILE-- + + + + + + + + +EOF; +test_schema($schema,'element="tns:testElement"',123.5); +echo "ok"; +?> +--EXPECT-- + +123 +int(123) +ok diff --git a/ext/soap/tests/schema/schema008.phpt b/ext/soap/tests/schema/schema008.phpt new file mode 100644 index 0000000000..1c4005f690 --- /dev/null +++ b/ext/soap/tests/schema/schema008.phpt @@ -0,0 +1,27 @@ +--TEST-- +SOAP XML Schema 8: simpleType/restriction (anonymous, inside an ellement) +--SKIPIF-- + +--FILE-- + + + + + + + + + +EOF; +test_schema($schema,'element="tns:testElement"',123.5); +echo "ok"; +?> +--EXPECT-- + +123 +int(123) +ok + diff --git a/ext/soap/tests/schema/schema009.phpt b/ext/soap/tests/schema/schema009.phpt new file mode 100644 index 0000000000..5198debd90 --- /dev/null +++ b/ext/soap/tests/schema/schema009.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP XML Schema 9: simpleType/list (as string) +--SKIPIF-- + +--FILE-- + + + +EOF; +test_schema($schema,'type="tns:testType"',"one two"); +echo "ok"; +?> +--EXPECT-- + +one two +string(7) "one two" +ok diff --git a/ext/soap/tests/schema/schema010.phpt b/ext/soap/tests/schema/schema010.phpt new file mode 100644 index 0000000000..6cea56ee48 --- /dev/null +++ b/ext/soap/tests/schema/schema010.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP XML Schema 10: simpleType/list (as array) +--SKIPIF-- + +--FILE-- + + + +EOF; +test_schema($schema,'type="tns:testType"',array("one","two")); +echo "ok"; +?> +--EXPECT-- + +one two +string(7) "one two" +ok diff --git a/ext/soap/tests/schema/schema011.phpt b/ext/soap/tests/schema/schema011.phpt new file mode 100644 index 0000000000..c66f0f7a10 --- /dev/null +++ b/ext/soap/tests/schema/schema011.phpt @@ -0,0 +1,24 @@ +--TEST-- +SOAP XML Schema 11: simpleType/list (inline type) (as string) +--SKIPIF-- + +--FILE-- + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',"123 456.7"); +echo "ok"; +?> +--EXPECT-- + +123 456 +string(7) "123 456" +ok diff --git a/ext/soap/tests/schema/schema012.phpt b/ext/soap/tests/schema/schema012.phpt new file mode 100644 index 0000000000..7ba25f9637 --- /dev/null +++ b/ext/soap/tests/schema/schema012.phpt @@ -0,0 +1,24 @@ +--TEST-- +SOAP XML Schema 12: simpleType/list (inline type) (as array) +--SKIPIF-- + +--FILE-- + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',array(123,456.7)); +echo "ok"; +?> +--EXPECT-- + +123 456 +string(7) "123 456" +ok diff --git a/ext/soap/tests/schema/schema013.phpt b/ext/soap/tests/schema/schema013.phpt new file mode 100644 index 0000000000..ee2e114bd6 --- /dev/null +++ b/ext/soap/tests/schema/schema013.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP XML Schema 13: simpleType/union +--SKIPIF-- + +--FILE-- + + + +EOF; +test_schema($schema,'type="tns:testType"',"str"); +echo "ok"; +?> +--EXPECT-- + +str +string(3) "str" +ok diff --git a/ext/soap/tests/schema/schema014.phpt b/ext/soap/tests/schema/schema014.phpt new file mode 100644 index 0000000000..87edb3ad30 --- /dev/null +++ b/ext/soap/tests/schema/schema014.phpt @@ -0,0 +1,20 @@ +--TEST-- +SOAP XML Schema 14: simpleType/union +--SKIPIF-- + +--FILE-- + + + +EOF; +test_schema($schema,'type="tns:testType"',123.5); +echo "ok"; +?> +--EXPECT-- + +123.5 +string(5) "123.5" +ok diff --git a/ext/soap/tests/schema/schema015.phpt b/ext/soap/tests/schema/schema015.phpt new file mode 100644 index 0000000000..dc9a02d586 --- /dev/null +++ b/ext/soap/tests/schema/schema015.phpt @@ -0,0 +1,30 @@ +--TEST-- +SOAP XML Schema 15: simpleType/union (inline type) +--SKIPIF-- + +--FILE-- + + + + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',"str"); +echo "ok"; +?> +--EXPECT-- + +str +string(3) "str" +ok diff --git a/ext/soap/tests/schema/schema016.phpt b/ext/soap/tests/schema/schema016.phpt new file mode 100644 index 0000000000..714fb59743 --- /dev/null +++ b/ext/soap/tests/schema/schema016.phpt @@ -0,0 +1,30 @@ +--TEST-- +SOAP XML Schema 16: simpleType/union (inline type) +--SKIPIF-- + +--FILE-- + + + + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',123.5); +echo "ok"; +?> +--EXPECT-- + +123.5 +string(5) "123.5" +ok diff --git a/ext/soap/tests/schema/schema017.phpt b/ext/soap/tests/schema/schema017.phpt new file mode 100644 index 0000000000..8b20483783 --- /dev/null +++ b/ext/soap/tests/schema/schema017.phpt @@ -0,0 +1,27 @@ +--TEST-- +SOAP XML Schema 17: union with list +--SKIPIF-- + +--FILE-- + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',123.5); +echo "ok"; +?> +--EXPECT-- + +123.5 +string(5) "123.5" +ok diff --git a/ext/soap/tests/schema/schema018.phpt b/ext/soap/tests/schema/schema018.phpt new file mode 100644 index 0000000000..f41e277aaa --- /dev/null +++ b/ext/soap/tests/schema/schema018.phpt @@ -0,0 +1,27 @@ +--TEST-- +SOAP XML Schema 18: union with list +--SKIPIF-- + +--FILE-- + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',"123.5"); +echo "ok"; +?> +--EXPECT-- + +123.5 +string(5) "123.5" +ok diff --git a/ext/soap/tests/schema/schema019.phpt b/ext/soap/tests/schema/schema019.phpt new file mode 100644 index 0000000000..73938772bf --- /dev/null +++ b/ext/soap/tests/schema/schema019.phpt @@ -0,0 +1,27 @@ +--TEST-- +SOAP XML Schema 19: union with list +--SKIPIF-- + +--FILE-- + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',"123.5 456.7"); +echo "ok"; +?> +--EXPECT-- + +123.5 456.7 +string(11) "123.5 456.7" +ok diff --git a/ext/soap/tests/schema/schema020.phpt b/ext/soap/tests/schema/schema020.phpt new file mode 100644 index 0000000000..899b773756 --- /dev/null +++ b/ext/soap/tests/schema/schema020.phpt @@ -0,0 +1,27 @@ +--TEST-- +SOAP XML Schema 20: union with list +--SKIPIF-- + +--FILE-- + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',array(123.5,456.7)); +echo "ok"; +?> +--EXPECT-- + +123.5 456.7 +string(11) "123.5 456.7" +ok diff --git a/ext/soap/tests/schema/schema021.phpt b/ext/soap/tests/schema/schema021.phpt new file mode 100644 index 0000000000..1400107f81 --- /dev/null +++ b/ext/soap/tests/schema/schema021.phpt @@ -0,0 +1,24 @@ +--TEST-- +SOAP XML Schema 21: list of unions +--SKIPIF-- + +--FILE-- + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',"123 123.5 456.7 str"); +echo "ok"; +?> +--EXPECT-- + +123 123.5 456.7 str +string(19) "123 123.5 456.7 str" +ok diff --git a/ext/soap/tests/schema/schema022.phpt b/ext/soap/tests/schema/schema022.phpt new file mode 100644 index 0000000000..bfbb05c772 --- /dev/null +++ b/ext/soap/tests/schema/schema022.phpt @@ -0,0 +1,24 @@ +--TEST-- +SOAP XML Schema 22: list of unions +--SKIPIF-- + +--FILE-- + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',array(123,123.5,'str')); +echo "ok"; +?> +--EXPECT-- + +123 123.5 str +string(13) "123 123.5 str" +ok diff --git a/ext/soap/tests/schema/schema023.phpt b/ext/soap/tests/schema/schema023.phpt new file mode 100644 index 0000000000..162a46e7f5 --- /dev/null +++ b/ext/soap/tests/schema/schema023.phpt @@ -0,0 +1,29 @@ +--TEST-- +SOAP XML Schema 23: SOAP 1.1 Array +--SKIPIF-- + +--FILE-- + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',array(123,123.5)); +echo "ok"; +?> +--EXPECT-- + +123123 +array(2) { + [0]=> + int(123) + [1]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema024.phpt b/ext/soap/tests/schema/schema024.phpt new file mode 100644 index 0000000000..628dfd73fd --- /dev/null +++ b/ext/soap/tests/schema/schema024.phpt @@ -0,0 +1,31 @@ +--TEST-- +SOAP XML Schema 24: SOAP 1.1 Array (second way) +--SKIPIF-- + +--FILE-- + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',array(123,123.5)); +echo "ok"; +?> +--EXPECT-- + +123123 +array(2) { + [0]=> + int(123) + [1]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema025.phpt b/ext/soap/tests/schema/schema025.phpt new file mode 100644 index 0000000000..f9c7af7586 --- /dev/null +++ b/ext/soap/tests/schema/schema025.phpt @@ -0,0 +1,30 @@ +--TEST-- +SOAP XML Schema 25: SOAP 1.2 Array +--SKIPIF-- + +--FILE-- + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',array(123,123.5)); +echo "ok"; +?> +--EXPECT-- + +123123 +array(2) { + [0]=> + int(123) + [1]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema026.phpt b/ext/soap/tests/schema/schema026.phpt new file mode 100644 index 0000000000..a80215ed4f --- /dev/null +++ b/ext/soap/tests/schema/schema026.phpt @@ -0,0 +1,31 @@ +--TEST-- +SOAP XML Schema 26: SOAP 1.2 Array (second way) +--SKIPIF-- + +--FILE-- + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',array(123,123.5)); +echo "ok"; +?> +--EXPECT-- + +123123 +array(2) { + [0]=> + int(123) + [1]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema027.phpt b/ext/soap/tests/schema/schema027.phpt new file mode 100644 index 0000000000..968b8562db --- /dev/null +++ b/ext/soap/tests/schema/schema027.phpt @@ -0,0 +1,35 @@ +--TEST-- +SOAP XML Schema 27: SOAP 1.1 Multidimensional array +--SKIPIF-- + +--FILE-- + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',array(array(123),array(123.5))); +echo "ok"; +?> +--EXPECT-- + +123123 +array(2) { + [0]=> + array(1) { + [0]=> + int(123) + } + [1]=> + array(1) { + [0]=> + int(123) + } +} +ok diff --git a/ext/soap/tests/schema/schema028.phpt b/ext/soap/tests/schema/schema028.phpt new file mode 100644 index 0000000000..f86a875848 --- /dev/null +++ b/ext/soap/tests/schema/schema028.phpt @@ -0,0 +1,36 @@ +--TEST-- +SOAP XML Schema 28: SOAP 1.2 Multidimensional array +--SKIPIF-- + +--FILE-- + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',array(array(123),array(123.5))); +echo "ok"; +?> +--EXPECT-- + +123123 +array(2) { + [0]=> + array(1) { + [0]=> + int(123) + } + [1]=> + array(1) { + [0]=> + int(123) + } +} +ok diff --git a/ext/soap/tests/schema/schema029.phpt b/ext/soap/tests/schema/schema029.phpt new file mode 100644 index 0000000000..8ae0a3b12f --- /dev/null +++ b/ext/soap/tests/schema/schema029.phpt @@ -0,0 +1,38 @@ +--TEST-- +SOAP XML Schema 29: SOAP 1.2 Multidimensional array (second way) +--SKIPIF-- + +--FILE-- + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',array(array(123),array(123.5))); +echo "ok"; +?> +--EXPECT-- + +123123 +array(2) { + [0]=> + array(1) { + [0]=> + int(123) + } + [1]=> + array(1) { + [0]=> + int(123) + } +} +ok diff --git a/ext/soap/tests/schema/schema030.phpt b/ext/soap/tests/schema/schema030.phpt new file mode 100644 index 0000000000..f6e62d4106 --- /dev/null +++ b/ext/soap/tests/schema/schema030.phpt @@ -0,0 +1,28 @@ +--TEST-- +SOAP XML Schema 30: Structure (sequence) +--SKIPIF-- + +--FILE-- + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>123.5)); +echo "ok"; +?> +--EXPECT-- + +123str +object(stdClass)#5 (2) { + ["int"]=> + int(123) + ["str"]=> + string(3) "str" +} +ok diff --git a/ext/soap/tests/schema/schema031.phpt b/ext/soap/tests/schema/schema031.phpt new file mode 100644 index 0000000000..f7d7712577 --- /dev/null +++ b/ext/soap/tests/schema/schema031.phpt @@ -0,0 +1,28 @@ +--TEST-- +SOAP XML Schema 31: Structure (all) +--SKIPIF-- + +--FILE-- + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>123.5)); +echo "ok"; +?> +--EXPECT-- + +123str +object(stdClass)#5 (2) { + ["int"]=> + int(123) + ["str"]=> + string(3) "str" +} +ok diff --git a/ext/soap/tests/schema/schema032.phpt b/ext/soap/tests/schema/schema032.phpt new file mode 100644 index 0000000000..bde19cee7e --- /dev/null +++ b/ext/soap/tests/schema/schema032.phpt @@ -0,0 +1,26 @@ +--TEST-- +SOAP XML Schema 32: Structure (choice) +--SKIPIF-- + +--FILE-- + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("int"=>123.5)); +echo "ok"; +?> +--EXPECT-- + +123 +object(stdClass)#5 (1) { + ["int"]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema033.phpt b/ext/soap/tests/schema/schema033.phpt new file mode 100644 index 0000000000..1c8341b71d --- /dev/null +++ b/ext/soap/tests/schema/schema033.phpt @@ -0,0 +1,36 @@ +--TEST-- +SOAP XML Schema 33: Nested complex types +--SKIPIF-- + +--FILE-- + + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("int"=>123.5,"nest"=>array("int"=>123.5))); +echo "ok"; +?> +--EXPECT-- + +123123 +object(stdClass)#5 (2) { + ["int"]=> + int(123) + ["nest"]=> + object(stdClass)#6 (1) { + ["int"]=> + int(123) + } +} +ok diff --git a/ext/soap/tests/schema/schema034.phpt b/ext/soap/tests/schema/schema034.phpt new file mode 100644 index 0000000000..995b0485e5 --- /dev/null +++ b/ext/soap/tests/schema/schema034.phpt @@ -0,0 +1,37 @@ +--TEST-- +SOAP XML Schema 34: Nested complex types (element ref) +--SKIPIF-- + +--FILE-- + + + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("int"=>123.5,"testType2"=>array("int"=>123.5))); +echo "ok"; +?> +--EXPECT-- + +123123 +object(stdClass)#5 (2) { + ["int"]=> + int(123) + ["testType2"]=> + object(stdClass)#6 (1) { + ["int"]=> + int(123) + } +} +ok diff --git a/ext/soap/tests/schema/schema035.phpt b/ext/soap/tests/schema/schema035.phpt new file mode 100644 index 0000000000..da2c6410a6 --- /dev/null +++ b/ext/soap/tests/schema/schema035.phpt @@ -0,0 +1,38 @@ +--TEST-- +SOAP XML Schema 35: Nested complex types (element ref + anonymous type) +--SKIPIF-- + +--FILE-- + + + + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("int"=>123.5,"testType2"=>array("int"=>123.5))); +echo "ok"; +?> +--EXPECT-- + +123123 +object(stdClass)#5 (2) { + ["int"]=> + int(123) + ["testType2"]=> + object(stdClass)#6 (1) { + ["int"]=> + int(123) + } +} +ok diff --git a/ext/soap/tests/schema/schema036.phpt b/ext/soap/tests/schema/schema036.phpt new file mode 100644 index 0000000000..bf25ec4b98 --- /dev/null +++ b/ext/soap/tests/schema/schema036.phpt @@ -0,0 +1,37 @@ +--TEST-- +SOAP XML Schema 36: Nested complex types (inline) +--SKIPIF-- + +--FILE-- + + + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("int"=>123.5,"testType2"=>array("int"=>123.5))); +echo "ok"; +?> +--EXPECT-- + +123123 +object(stdClass)#5 (2) { + ["int"]=> + int(123) + ["testType2"]=> + object(stdClass)#6 (1) { + ["int"]=> + int(123) + } +} +ok diff --git a/ext/soap/tests/schema/schema037.phpt b/ext/soap/tests/schema/schema037.phpt new file mode 100644 index 0000000000..b1437a1f93 --- /dev/null +++ b/ext/soap/tests/schema/schema037.phpt @@ -0,0 +1,28 @@ +--TEST-- +SOAP XML Schema 37: Structure with attributes +--SKIPIF-- + +--FILE-- + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>123.5)); +echo "ok"; +?> +--EXPECT-- + +str +object(stdClass)#5 (2) { + ["str"]=> + string(3) "str" + ["int"]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema038.phpt b/ext/soap/tests/schema/schema038.phpt new file mode 100644 index 0000000000..fec1332423 --- /dev/null +++ b/ext/soap/tests/schema/schema038.phpt @@ -0,0 +1,29 @@ +--TEST-- +SOAP XML Schema 38: Structure with attributes (ref) +--SKIPIF-- + +--FILE-- + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>123.5)); +echo "ok"; +?> +--EXPECT-- + +str +object(stdClass)#5 (2) { + ["str"]=> + string(3) "str" + ["int"]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema039.phpt b/ext/soap/tests/schema/schema039.phpt new file mode 100644 index 0000000000..f392022809 --- /dev/null +++ b/ext/soap/tests/schema/schema039.phpt @@ -0,0 +1,31 @@ +--TEST-- +SOAP XML Schema 39: Structure with attributes (attributeGroup) +--SKIPIF-- + +--FILE-- + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>123.5)); +echo "ok"; +?> +--EXPECT-- + +str +object(stdClass)#5 (2) { + ["str"]=> + string(3) "str" + ["int"]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema040.phpt b/ext/soap/tests/schema/schema040.phpt new file mode 100644 index 0000000000..85a1d5c8b2 --- /dev/null +++ b/ext/soap/tests/schema/schema040.phpt @@ -0,0 +1,32 @@ +--TEST-- +SOAP XML Schema 40: Structure with attributes (inline types) +--SKIPIF-- + +--FILE-- + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>123.5)); +echo "ok"; +?> +--EXPECT-- + +str +object(stdClass)#5 (2) { + ["str"]=> + string(3) "str" + ["int"]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema041.phpt b/ext/soap/tests/schema/schema041.phpt new file mode 100644 index 0000000000..13df8d7902 --- /dev/null +++ b/ext/soap/tests/schema/schema041.phpt @@ -0,0 +1,31 @@ +--TEST-- +SOAP XML Schema 41: Structure (group) +--SKIPIF-- + +--FILE-- + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>123.5)); +echo "ok"; +?> +--EXPECT-- + +123str +object(stdClass)#5 (2) { + ["int"]=> + int(123) + ["str"]=> + string(3) "str" +} +ok diff --git a/ext/soap/tests/schema/schema042.phpt b/ext/soap/tests/schema/schema042.phpt new file mode 100644 index 0000000000..eab3059205 --- /dev/null +++ b/ext/soap/tests/schema/schema042.phpt @@ -0,0 +1,29 @@ +--TEST-- +SOAP XML Schema 42: Extension of simple type +--SKIPIF-- + +--FILE-- + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("_"=>123.5,"int"=>123.5)); +echo "ok"; +?> +--EXPECT-- + +123 +object(stdClass)#5 (2) { + ["_"]=> + int(123) + ["int"]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema043.phpt b/ext/soap/tests/schema/schema043.phpt new file mode 100644 index 0000000000..b1977b6cb6 --- /dev/null +++ b/ext/soap/tests/schema/schema043.phpt @@ -0,0 +1,38 @@ +--TEST-- +SOAP XML Schema 43: Extension of simple type (2) +--SKIPIF-- + +--FILE-- + + + + + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("_"=>123.5,"int"=>123.5,"int2"=>123.5)); +echo "ok"; +?> +--EXPECT-- + +123 +object(stdClass)#5 (3) { + ["_"]=> + int(123) + ["int"]=> + int(123) + ["int2"]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema044.phpt b/ext/soap/tests/schema/schema044.phpt new file mode 100644 index 0000000000..b5dbbe1e66 --- /dev/null +++ b/ext/soap/tests/schema/schema044.phpt @@ -0,0 +1,29 @@ +--TEST-- +SOAP XML Schema 44: Restriction of simple type +--SKIPIF-- + +--FILE-- + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("_"=>123.5,"int"=>123.5)); +echo "ok"; +?> +--EXPECT-- + +123 +object(stdClass)#5 (2) { + ["_"]=> + int(123) + ["int"]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema045.phpt b/ext/soap/tests/schema/schema045.phpt new file mode 100644 index 0000000000..6410e1e063 --- /dev/null +++ b/ext/soap/tests/schema/schema045.phpt @@ -0,0 +1,36 @@ +--TEST-- +SOAP XML Schema 45: Restriction of simple type (2) +--SKIPIF-- + +--FILE-- + + + + + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("_"=>123.5,"int"=>123.5,"int2"=>123.5)); +echo "ok"; +?> +--EXPECT-- + +123 +object(stdClass)#5 (2) { + ["_"]=> + int(123) + ["int2"]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema046.phpt b/ext/soap/tests/schema/schema046.phpt new file mode 100644 index 0000000000..3d4695c494 --- /dev/null +++ b/ext/soap/tests/schema/schema046.phpt @@ -0,0 +1,38 @@ +--TEST-- +SOAP XML Schema 46: Extension of complex type +--SKIPIF-- + +--FILE-- + + + + + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("_"=>123.5,"int"=>123.5,"int2"=>123.5)); +echo "ok"; +?> +--EXPECT-- + +123 +object(stdClass)#5 (3) { + ["_"]=> + int(123) + ["int"]=> + int(123) + ["int2"]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema047.phpt b/ext/soap/tests/schema/schema047.phpt new file mode 100644 index 0000000000..497f7ef5d0 --- /dev/null +++ b/ext/soap/tests/schema/schema047.phpt @@ -0,0 +1,34 @@ +--TEST-- +SOAP XML Schema 47: Extension of complex type (2) +--SKIPIF-- + +--FILE-- + + + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("_"=>123.5,"int"=>123.5,"int2"=>123.5)); +echo "ok"; +?> +--EXPECT-- + +123 +object(stdClass)#5 (2) { + ["int"]=> + int(123) + ["int2"]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema048.phpt b/ext/soap/tests/schema/schema048.phpt new file mode 100644 index 0000000000..0fc02e2e66 --- /dev/null +++ b/ext/soap/tests/schema/schema048.phpt @@ -0,0 +1,36 @@ +--TEST-- +SOAP XML Schema 48: Restriction of complex type +--SKIPIF-- + +--FILE-- + + + + + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("_"=>123.5,"int"=>123.5,"int2"=>123.5)); +echo "ok"; +?> +--EXPECT-- + +123 +object(stdClass)#5 (2) { + ["_"]=> + int(123) + ["int2"]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema049.phpt b/ext/soap/tests/schema/schema049.phpt new file mode 100644 index 0000000000..4213ba0c8f --- /dev/null +++ b/ext/soap/tests/schema/schema049.phpt @@ -0,0 +1,34 @@ +--TEST-- +SOAP XML Schema 49: Restriction of complex type (2) +--SKIPIF-- + +--FILE-- + + + + + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("_"=>123.5,"int"=>123.5,"int2"=>123.5)); +echo "ok"; +?> +--EXPECT-- + +123 +object(stdClass)#5 (1) { + ["int2"]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema050.phpt b/ext/soap/tests/schema/schema050.phpt new file mode 100644 index 0000000000..925edb133f --- /dev/null +++ b/ext/soap/tests/schema/schema050.phpt @@ -0,0 +1,28 @@ +--TEST-- +SOAP XML Schema 50: Array in complex type (maxOccurs > 1, one value) +--SKIPIF-- + +--FILE-- + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("int"=>123.5,"int2"=>123.5)); +echo "ok"; +?> +--EXPECT-- + +123123 +object(stdClass)#5 (2) { + ["int"]=> + int(123) + ["int2"]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema051.phpt b/ext/soap/tests/schema/schema051.phpt new file mode 100644 index 0000000000..582c78eaf4 --- /dev/null +++ b/ext/soap/tests/schema/schema051.phpt @@ -0,0 +1,33 @@ +--TEST-- +SOAP XML Schema 51: Array in complex type (maxOccurs > 1, array) +--SKIPIF-- + +--FILE-- + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("int"=>123.5,"int2"=>array(123.5,456.7))); +echo "ok"; +?> +--EXPECT-- + +123123456 +object(stdClass)#5 (2) { + ["int"]=> + int(123) + ["int2"]=> + array(2) { + [0]=> + int(123) + [1]=> + int(456) + } +} +ok diff --git a/ext/soap/tests/schema/schema052.phpt b/ext/soap/tests/schema/schema052.phpt new file mode 100644 index 0000000000..59f6ff811f --- /dev/null +++ b/ext/soap/tests/schema/schema052.phpt @@ -0,0 +1,28 @@ +--TEST-- +SOAP XML Schema 52: Array in complex type (maxOccurs > 1, array with one value) +--SKIPIF-- + +--FILE-- + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("int"=>123.5,"int2"=>array(123.5))); +echo "ok"; +?> +--EXPECT-- + +123123 +object(stdClass)#5 (2) { + ["int"]=> + int(123) + ["int2"]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema053.phpt b/ext/soap/tests/schema/schema053.phpt new file mode 100644 index 0000000000..b88115ec29 --- /dev/null +++ b/ext/soap/tests/schema/schema053.phpt @@ -0,0 +1,26 @@ +--TEST-- +SOAP XML Schema 52: Array in complex type (maxOccurs > 1, empty array) +--SKIPIF-- + +--FILE-- + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("int"=>123.5,"int2"=>array())); +echo "ok"; +?> +--EXPECT-- + +123 +object(stdClass)#5 (1) { + ["int"]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema054.phpt b/ext/soap/tests/schema/schema054.phpt new file mode 100644 index 0000000000..0570da0bb2 --- /dev/null +++ b/ext/soap/tests/schema/schema054.phpt @@ -0,0 +1,21 @@ +--TEST-- +SOAP XML Schema 54: Apache Map +--SKIPIF-- + +--FILE-- +123,'b'=>123.5)); +echo "ok"; +?> +--EXPECT-- + +a123b123.5 +array(2) { + ["a"]=> + int(123) + ["b"]=> + float(123.5) +} +ok diff --git a/ext/soap/tests/schema/schema055.phpt b/ext/soap/tests/schema/schema055.phpt new file mode 100644 index 0000000000..c4d9577425 --- /dev/null +++ b/ext/soap/tests/schema/schema055.phpt @@ -0,0 +1,28 @@ +--TEST-- +SOAP XML Schema 55: Apache Map (extension) +--SKIPIF-- + +--FILE-- + + + + + + +EOF; +test_schema($schema,'type="testType"',array('a'=>123,'b'=>123.5)); +echo "ok"; +?> +--EXPECT-- + +a123b123.5 +array(2) { + ["a"]=> + int(123) + ["b"]=> + float(123.5) +} +ok diff --git a/ext/soap/tests/schema/schema056.phpt b/ext/soap/tests/schema/schema056.phpt new file mode 100644 index 0000000000..1ada78ea2a --- /dev/null +++ b/ext/soap/tests/schema/schema056.phpt @@ -0,0 +1,29 @@ +--TEST-- +SOAP XML Schema 56: SOAP 1.1 Array (literal encoding) +--SKIPIF-- + +--FILE-- + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',array(123,123.5),'rpc','literal'); +echo "ok"; +?> +--EXPECT-- + +123123 +array(2) { + [0]=> + int(123) + [1]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema057.phpt b/ext/soap/tests/schema/schema057.phpt new file mode 100644 index 0000000000..1848b9c24a --- /dev/null +++ b/ext/soap/tests/schema/schema057.phpt @@ -0,0 +1,31 @@ +--TEST-- +SOAP XML Schema 57: SOAP 1.1 Array (second way, literal encoding) +--SKIPIF-- + +--FILE-- + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',array(123,123.5),'rpc','literal'); +echo "ok"; +?> +--EXPECT-- + +123123 +array(2) { + [0]=> + int(123) + [1]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema058.phpt b/ext/soap/tests/schema/schema058.phpt new file mode 100644 index 0000000000..b96fc9fcca --- /dev/null +++ b/ext/soap/tests/schema/schema058.phpt @@ -0,0 +1,30 @@ +--TEST-- +SOAP XML Schema 58: SOAP 1.2 Array (literal encoding) +--SKIPIF-- + +--FILE-- + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',array(123,123.5),'rpc','literal'); +echo "ok"; +?> +--EXPECT-- + +123123 +array(2) { + [0]=> + int(123) + [1]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema059.phpt b/ext/soap/tests/schema/schema059.phpt new file mode 100644 index 0000000000..875bae9868 --- /dev/null +++ b/ext/soap/tests/schema/schema059.phpt @@ -0,0 +1,31 @@ +--TEST-- +SOAP XML Schema 59: SOAP 1.2 Array (second way, literal encoding) +--SKIPIF-- + +--FILE-- + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',array(123,123.5),'rpc','literal'); +echo "ok"; +?> +--EXPECT-- + +123123 +array(2) { + [0]=> + int(123) + [1]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema060.phpt b/ext/soap/tests/schema/schema060.phpt new file mode 100644 index 0000000000..4daa83c191 --- /dev/null +++ b/ext/soap/tests/schema/schema060.phpt @@ -0,0 +1,36 @@ +--TEST-- +SOAP XML Schema 60: SOAP 1.2 Multidimensional array (literal encoding) +--SKIPIF-- + +--FILE-- + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',array(array(123),array(123.5)),'rpc','literal'); +echo "ok"; +?> +--EXPECT-- + +123123 +array(2) { + [0]=> + array(1) { + [0]=> + int(123) + } + [1]=> + array(1) { + [0]=> + int(123) + } +} +ok diff --git a/ext/soap/tests/schema/schema061.phpt b/ext/soap/tests/schema/schema061.phpt new file mode 100644 index 0000000000..bbd2aa6579 --- /dev/null +++ b/ext/soap/tests/schema/schema061.phpt @@ -0,0 +1,38 @@ +--TEST-- +SOAP XML Schema 61: SOAP 1.2 Multidimensional array (second way, literal encoding) +--SKIPIF-- + +--FILE-- + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',array(array(123),array(123.5)),'rpc','literal'); +echo "ok"; +?> +--EXPECT-- + +123123 +array(2) { + [0]=> + array(1) { + [0]=> + int(123) + } + [1]=> + array(1) { + [0]=> + int(123) + } +} +ok diff --git a/ext/soap/tests/schema/schema062.phpt b/ext/soap/tests/schema/schema062.phpt new file mode 100644 index 0000000000..e95c2959c8 --- /dev/null +++ b/ext/soap/tests/schema/schema062.phpt @@ -0,0 +1,29 @@ +--TEST-- +SOAP XML Schema 62: NULL with attributes +--SKIPIF-- + +--FILE-- + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("_"=>NULL,"int"=>123.5)); +echo "ok"; +?> +--EXPECT-- + + +object(stdClass)#5 (2) { + ["_"]=> + NULL + ["int"]=> + int(123) +} +ok diff --git a/ext/soap/tests/schema/schema063.phpt b/ext/soap/tests/schema/schema063.phpt new file mode 100644 index 0000000000..4c88b5e036 --- /dev/null +++ b/ext/soap/tests/schema/schema063.phpt @@ -0,0 +1,16 @@ +--TEST-- +SOAP XML Schema 63: standard unsignedLong type +--SKIPIF-- + +--FILE-- + +--EXPECT-- + +4294967295 +float(4294967295) +ok diff --git a/ext/soap/tests/schema/schema064.phpt b/ext/soap/tests/schema/schema064.phpt new file mode 100644 index 0000000000..b2b5db7ee0 --- /dev/null +++ b/ext/soap/tests/schema/schema064.phpt @@ -0,0 +1,57 @@ +--TEST-- +SOAP XML Schema 64: standard date/time types +--SKIPIF-- + +--FILE-- + + + + + + + + + + + + +EOF; +$date = gmmktime(1,2,3,4,5,1976); +putenv('TZ=GMT'); +test_schema($schema,'type="tns:testType"',array( + 'dateTime' => $date, + 'time' => $date, + 'date' => $date, + 'gYearMonth' => $date, + 'gYear' => $date, + 'gMonthDay' => $date, + 'gDay' => $date, + 'gMonth' => $date +)); +echo "ok"; +?> +--EXPECT-- + +1976-04-05T01:02:03Z1976-04-05Z1976-04Z1976Z--04-05Z---05Z--04--Z +object(stdClass)#4 (8) { + ["dateTime"]=> + string(20) "1976-04-05T01:02:03Z" + ["time"]=> + string(9) "01:02:03Z" + ["date"]=> + string(11) "1976-04-05Z" + ["gYearMonth"]=> + string(8) "1976-04Z" + ["gYear"]=> + string(5) "1976Z" + ["gMonthDay"]=> + string(8) "--04-05Z" + ["gDay"]=> + string(6) "---05Z" + ["gMonth"]=> + string(7) "--04--Z" +} +ok diff --git a/ext/soap/tests/schema/schema065.phpt b/ext/soap/tests/schema/schema065.phpt new file mode 100644 index 0000000000..eb768ed851 --- /dev/null +++ b/ext/soap/tests/schema/schema065.phpt @@ -0,0 +1,26 @@ +--TEST-- +SOAP XML Schema 65: Attribute with default value +--SKIPIF-- + +--FILE-- + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("str"=>"str")); +echo "ok"; +?> +--EXPECT-- + + +object(stdClass)#5 (2) { + ["str"]=> + string(3) "str" + ["int"]=> + int(5) +} +ok diff --git a/ext/soap/tests/schema/schema066.phpt b/ext/soap/tests/schema/schema066.phpt new file mode 100644 index 0000000000..8093aacf3c --- /dev/null +++ b/ext/soap/tests/schema/schema066.phpt @@ -0,0 +1,24 @@ +--TEST-- +SOAP XML Schema 66: Attribute with fixed value (1) +--SKIPIF-- + +--FILE-- + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("str"=>"str")); +echo "ok"; +?> +--EXPECT-- + + +object(stdClass)#5 (1) { + ["str"]=> + string(3) "str" +} +ok diff --git a/ext/soap/tests/schema/schema067.phpt b/ext/soap/tests/schema/schema067.phpt new file mode 100644 index 0000000000..8aa08d2d2b --- /dev/null +++ b/ext/soap/tests/schema/schema067.phpt @@ -0,0 +1,26 @@ +--TEST-- +SOAP XML Schema 67: Attribute with fixed value (2) +--SKIPIF-- + +--FILE-- + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>5)); +echo "ok"; +?> +--EXPECT-- + + +object(stdClass)#5 (2) { + ["str"]=> + string(3) "str" + ["int"]=> + int(5) +} +ok diff --git a/ext/soap/tests/schema/schema068.phpt b/ext/soap/tests/schema/schema068.phpt new file mode 100644 index 0000000000..d8d18c305c --- /dev/null +++ b/ext/soap/tests/schema/schema068.phpt @@ -0,0 +1,18 @@ +--TEST-- +SOAP XML Schema 68: Attribute with fixed value (3) +--SKIPIF-- + +--FILE-- + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>4)); +echo "ok"; +?> +--EXPECTF-- +Fatal error: Attribute 'int' has fixed value '5' (value '4' is not allowed) in %stest_schema.inc on line %d diff --git a/ext/soap/tests/schema/schema069.phpt b/ext/soap/tests/schema/schema069.phpt new file mode 100644 index 0000000000..67df500906 --- /dev/null +++ b/ext/soap/tests/schema/schema069.phpt @@ -0,0 +1,27 @@ +--TEST-- +SOAP XML Schema 69: Attribute with default value (reference) +--SKIPIF-- + +--FILE-- + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("str"=>"str")); +echo "ok"; +?> +--EXPECT-- + + +object(stdClass)#5 (2) { + ["str"]=> + string(3) "str" + ["int"]=> + int(5) +} +ok diff --git a/ext/soap/tests/schema/schema070.phpt b/ext/soap/tests/schema/schema070.phpt new file mode 100644 index 0000000000..f9171923c0 --- /dev/null +++ b/ext/soap/tests/schema/schema070.phpt @@ -0,0 +1,29 @@ +--TEST-- +SOAP XML Schema 70: Attribute with default value (attributeGroup) +--SKIPIF-- + +--FILE-- + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',(object)array("str"=>"str")); +echo "ok"; +?> +--EXPECT-- + + +object(stdClass)#5 (2) { + ["str"]=> + string(3) "str" + ["int"]=> + int(5) +} +ok diff --git a/ext/soap/tests/schema/schema071.phpt b/ext/soap/tests/schema/schema071.phpt new file mode 100644 index 0000000000..1991f7ad8e --- /dev/null +++ b/ext/soap/tests/schema/schema071.phpt @@ -0,0 +1,23 @@ +--TEST-- +SOAP XML Schema 71: SOAP 1.1 Array (document style) +--SKIPIF-- + +--FILE-- + + + + + + + +EOF; +test_schema($schema,'type="tns:testType"',array(123,123.5),'document','literal'); +echo "ok"; +?> +--EXPECT-- + +123123 +ok diff --git a/ext/soap/tests/schema/schema072.phpt b/ext/soap/tests/schema/schema072.phpt new file mode 100644 index 0000000000..89a0ed3597 --- /dev/null +++ b/ext/soap/tests/schema/schema072.phpt @@ -0,0 +1,25 @@ +--TEST-- +SOAP XML Schema 72: SOAP 1.1 Array (document style, element with inline type) +--SKIPIF-- + +--FILE-- + + + + + + + + + +EOF; +test_schema($schema,'element="tns:testElement"',array(123,123.5),'document','literal'); +echo "ok"; +?> +--EXPECT-- + +123123 +ok diff --git a/ext/soap/tests/schema/schema073.phpt b/ext/soap/tests/schema/schema073.phpt new file mode 100644 index 0000000000..22dd9e2604 --- /dev/null +++ b/ext/soap/tests/schema/schema073.phpt @@ -0,0 +1,24 @@ +--TEST-- +SOAP XML Schema 73: SOAP 1.1 Array (document style, element with type ref) +--SKIPIF-- + +--FILE-- + + + + + + + + +EOF; +test_schema($schema,'element="tns:testElement"',array(123,123.5),'document','literal'); +echo "ok"; +?> +--EXPECT-- + +123123 +ok diff --git a/ext/soap/tests/schema/skipif.inc b/ext/soap/tests/schema/skipif.inc new file mode 100644 index 0000000000..fa8574e6a2 --- /dev/null +++ b/ext/soap/tests/schema/skipif.inc @@ -0,0 +1,3 @@ + diff --git a/ext/soap/tests/schema/test_schema.inc b/ext/soap/tests/schema/test_schema.inc new file mode 100644 index 0000000000..186eda33a6 --- /dev/null +++ b/ext/soap/tests/schema/test_schema.inc @@ -0,0 +1,81 @@ + + + + + + $schema + + + + + + + + + + + + + + + + + + + + + + + + + +EOF; + + $fname = tempnam ("./", "wsdl"); + $f = fopen($fname,"w"); + fwrite($f,$wsdl); + fclose($f); + $x = new SoapObject($fname); + $y = new SoapServer("http://test-uri/"); + $y->bind($fname); + $y->addfunction("test"); + unlink($fname); + + $x->__trace(1); + $x->test($param); + $xml = xml_parser_create(); + $req = $x->__getlastrequest(); + echo $req; + if ($style == "rpc") { + $HTTP_RAW_POST_DATA = $req; + ob_start(); + $y->handle(); + ob_end_clean(); + var_dump($val); + } + +/* + xml_parse_into_struct($xml,$x->__getlastrequest(),&$x,&$y); + var_dump($x); + var_dump($y); +*/ +} +?> \ No newline at end of file