Annotation of embedaddon/php/ext/soap/tests/schema/schema046.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: SOAP XML Schema 46: Extension of complex type
                      3: --SKIPIF--
                      4: <?php require_once('skipif.inc'); ?>
                      5: --FILE--
                      6: <?php
                      7: include "test_schema.inc";
                      8: $schema = <<<EOF
                      9:        <complexType name="testType2">
                     10:                <simpleContent>
                     11:                        <extension base="int">
                     12:                                <attribute name="int" type="int"/>
                     13:                        </extension>
                     14:                </simpleContent>
                     15:        </complexType>
                     16:        <complexType name="testType">
                     17:                <complexContent>
                     18:                        <extension base="tns:testType2">
                     19:                                <attribute name="int2" type="int"/>
                     20:                        </extension>
                     21:                </complexContent>
                     22:        </complexType>
                     23: EOF;
                     24: test_schema($schema,'type="tns:testType"',(object)array("_"=>123.5,"int"=>123.5,"int2"=>123.5));
                     25: echo "ok";
                     26: ?>
                     27: --EXPECTF--
                     28: <?xml version="1.0" encoding="UTF-8"?>
                     29: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://test-uri/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:test><testParam xsi:type="ns1:testType" int="123" int2="123">123</testParam></ns1:test></SOAP-ENV:Body></SOAP-ENV:Envelope>
                     30: object(stdClass)#%d (3) {
                     31:   ["_"]=>
                     32:   int(123)
                     33:   ["int"]=>
                     34:   int(123)
                     35:   ["int2"]=>
                     36:   int(123)
                     37: }
                     38: ok

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>