mirror of
https://github.com/php/php-src.git
synced 2024-10-07 17:56:12 +00:00
19 lines
521 B
Plaintext
19 lines
521 B
Plaintext
|
--TEST--
|
||
|
SOAP XML Schema 68: Attribute with fixed value (3)
|
||
|
--SKIPIF--
|
||
|
<?php require_once('skipif.inc'); ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
include "test_schema.inc";
|
||
|
$schema = <<<EOF
|
||
|
<complexType name="testType">
|
||
|
<attribute name="str" type="string"/>
|
||
|
<attribute name="int" type="int" fixed="5"/>
|
||
|
</complexType>
|
||
|
EOF;
|
||
|
test_schema($schema,'type="tns:testType"',(object)array("str"=>"str","int"=>4));
|
||
|
echo "ok";
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Fatal error: Attribute 'int' has fixed value '5' (value '4' is not allowed) in %stest_schema.inc on line %d
|