xref: /PHP-5.3/ext/soap/tests/schema/schema068.phpt (revision 6cf3c858)
1--TEST--
2SOAP XML Schema 68: Attribute with fixed value (3)
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7include "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>
13EOF;
14test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>4));
15echo "ok";
16?>
17--EXPECTF--
18Fatal error: SOAP-ERROR: Encoding: Attribute 'int' has fixed value '5' (value '4' is not allowed) in %stest_schema.inc on line %d