Annotation of embedaddon/php/ext/soap/tests/schema/schema068.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SOAP XML Schema 68: Attribute with fixed value (3)
3: --SKIPIF--
4: <?php require_once('skipif.inc'); ?>
5: --FILE--
6: <?php
7: include "test_schema.inc";
8: $schema = <<<EOF
9: <complexType name="testType">
10: <attribute name="str" type="string"/>
11: <attribute name="int" type="int" fixed="5"/>
12: </complexType>
13: EOF;
14: test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>4));
15: echo "ok";
16: ?>
17: --EXPECTF--
18: Fatal error: SOAP-ERROR: Encoding: Attribute 'int' has fixed value '5' (value '4' is not allowed) in %stest_schema.inc on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>