本文整理汇总了PHP中test_schema函数的典型用法代码示例。如果您正苦于以下问题:PHP test_schema函数的具体用法?PHP test_schema怎么用?PHP test_schema使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了test_schema函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<simpleType name="testType">
\t\t<list>
\t\t\t<simpleType>
\t\t\t\t<restriction base="int"/>
\t\t\t</simpleType>
\t\t</list>
\t</simpleType>
EOF;
test_schema($schema, 'type="tns:testType"', array(123, 456.7));
echo "ok";
示例2: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<simpleType name="testType">
\t\t<union memberTypes="string int float"/>
\t</simpleType>
EOF;
test_schema($schema, 'type="tns:testType"', "str");
echo "ok";
示例3: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<complexType name="testType">
\t\t<attribute name="int1" type="int"/>
\t\t<attribute name="int2" type="int" form="qualified"/>
\t\t<attribute name="int3" type="int" form="unqualified"/>
\t</complexType>
EOF;
test_schema($schema, 'type="tns:testType"', (object) array("int1" => 1.1, "int2" => 2.2, "int3" => 3.3), "rpc", "encoded");
echo "ok";
示例4: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<complexType name="testType">
\t\t<sequence>
\t\t\t<element name="str" type="string"/>
\t\t</sequence>
\t\t<attribute name="int" type="int"/>
\t</complexType>
EOF;
test_schema($schema, 'type="tns:testType"', (object) array("str" => "str", "int" => 123.5));
echo "ok";
示例5: test_schema
<?php
include "test_schema.inc";
$schema = '';
test_schema($schema, 'type="xsd:unsignedLong"', 0xffffffff);
echo "ok";
示例6: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<complexType name="testType2">
\t\t<sequence>
\t\t\t<element name="int" type="int"/>
\t\t</sequence>
\t</complexType>
\t<complexType name="testType">
\t\t<complexContent>
\t\t\t<extension base="tns:testType2">
\t\t\t\t<sequence>
\t\t\t\t\t<element name="int2" type="int"/>
\t\t\t\t</sequence>
\t\t\t</extension>
\t\t</complexContent>
\t</complexType>
EOF;
class A
{
public $int = 1;
}
class B extends A
{
public $int2 = 2;
}
test_schema($schema, 'type="tns:testType"', new B());
echo "ok";
示例7: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<element name="testElement" type="tns:testType"/>
\t<complexType name="testType">
\t\t<complexContent>
\t\t\t<restriction base="SOAP-ENC:Array">
\t <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="int[]"/>
\t</restriction>
</complexContent>
\t</complexType>
EOF;
test_schema($schema, 'element="tns:testElement"', array(123, 123.5), 'document', 'literal');
echo "ok";
示例8: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<complexType name="testType">
\t\t<sequence>
\t\t\t<element name="int1" type="int"/>
\t\t\t<element name="int2" type="int" form="qualified"/>
\t\t\t<element name="int3" type="int" form="unqualified"/>
\t\t</sequence>
\t</complexType>
EOF;
test_schema($schema, 'type="tns:testType"', (object) array("int1" => 1.1, "int2" => 2.2, "int3" => 3.3), "rpc", "literal", 'elementFormDefault="unqualified"');
echo "ok";
示例9: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<complexType name="testType">
\t\t<complexContent>
\t\t\t<extension base="apache:Map" xmlns:apache="http://xml.apache.org/xml-soap">
\t</extension>
</complexContent>
\t</complexType>
EOF;
test_schema($schema, 'type="testType"', array('a' => 123, 'b' => 123.5));
echo "ok";
示例10: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<simpleType name="testType">
\t\t<list>
\t\t\t<simpleType>
\t\t\t\t<union memberTypes="int float str"/>
\t\t\t</simpleType>
\t\t</list>
\t</simpleType>
EOF;
test_schema($schema, 'type="tns:testType"', "123 123.5 456.7 str");
echo "ok";
示例11: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<simpleType name="testType">
\t\t<list itemType="token"/>
\t</simpleType>
EOF;
test_schema($schema, 'type="tns:testType"', "one two");
echo "ok";
示例12: test_schema
<?php
include "test_schema.inc";
$schema = '';
test_schema($schema, 'type="apache:Map" xmlns:apache="http://xml.apache.org/xml-soap"', array('a' => 123, 'b' => 123.5));
echo "ok";
示例13: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<simpleType name="testType">
\t\t<union>
\t\t\t<simpleType>
\t\t\t\t<restriction base="float"/>
\t\t\t</simpleType>
\t\t\t<simpleType>
\t\t\t\t<list itemType="int"/>
\t\t\t</simpleType>
\t\t</union>
\t</simpleType>
EOF;
test_schema($schema, 'type="tns:testType"', "123.5");
echo "ok";
示例14: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<complexType name="testType">
\t\t<complexContent>
\t\t\t<restriction base="SOAP-ENC:Array">
\t\t\t\t<all>
\t\t\t\t\t<element name="x_item" type="int" maxOccurs="unbounded"/>
\t\t </all>
\t</restriction>
</complexContent>
\t</complexType>
EOF;
test_schema($schema, 'type="tns:testType"', array(123, 123.5));
echo "ok";
示例15: test_schema
<?php
include "test_schema.inc";
$schema = <<<EOF
\t<simpleType name="testType">
\t\t<restriction>
\t\t\t<simpleType name="testType2">
\t\t <restriction base="xsd:int"/>
\t </simpleType>
\t </restriction>
\t</simpleType>
\t<element name="testElement" type="tns:testType"/>
EOF;
test_schema($schema, 'element="tns:testElement"', 123.5);
echo "ok";