From: Dmitry Stogov Date: Wed, 2 May 2007 08:35:17 +0000 (+0000) Subject: New test X-Git-Tag: php-5.2.2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b7999cd0bf092fb5d1fa10050d8ac6568a22c25;p=php New test --- 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