From 4b7999cd0bf092fb5d1fa10050d8ac6568a22c25 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 2 May 2007 08:35:17 +0000 Subject: [PATCH] New test --- ext/soap/tests/schema/schema085.phpt | 45 ++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100755 ext/soap/tests/schema/schema085.phpt diff --git a/ext/soap/tests/schema/schema085.phpt b/ext/soap/tests/schema/schema085.phpt new file mode 100755 index 0000000000..9a93ac7235 --- /dev/null +++ b/ext/soap/tests/schema/schema085.phpt @@ -0,0 +1,45 @@ +--TEST-- +SOAP XML Schema 85: Extension of complex type (elements order) +--SKIPIF-- + +--FILE-- + + + + + + + + + + + + + + +EOF; +class A { + public $int = 1; +} + +class B extends A { + public $int2 = 2; +} + + +test_schema($schema,'type="tns:testType"',new B()); +echo "ok"; +?> +--EXPECT-- + +12 +object(stdClass)#5 (2) { + ["int"]=> + int(1) + ["int2"]=> + int(2) +} +ok -- 2.50.1