Skip to content

Commit 409bb6a

Browse files
authored
Merge pull request #49 from veewee/enhance-proprty-settings-with-container-info
Enhance property meta with container meta
2 parents f4ebc7b + 04fb2f4 commit 409bb6a

File tree

2 files changed

+67
-1
lines changed

2 files changed

+67
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"require": {
1616
"php": "~8.2.0 || ~8.3.0 || ~8.4.0",
1717
"ext-dom": "*",
18-
"goetas-webservices/xsd-reader": "^0.4.8",
18+
"goetas-webservices/xsd-reader": "^0.4.11",
1919
"php-soap/engine": "^2.13",
2020
"php-soap/wsdl": "^1.10",
2121
"php-soap/xml": "^1.8.0",
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
--TEST--
2+
SOAP XML Schema 1015: Group ref with minOccurs / MaxOccurs
3+
--FILE--
4+
<?php
5+
include __DIR__."/test_schema.inc";
6+
$schema = <<<EOF
7+
<complexType name="nullableGroupRef">
8+
<sequence>
9+
<group minOccurs="0" ref="tns:mygroup"/>
10+
</sequence>
11+
</complexType>
12+
<complexType name="listGroupRef">
13+
<sequence>
14+
<group minOccurs="0" maxOccurs="unbounded" ref="tns:mygroup"/>
15+
</sequence>
16+
</complexType>
17+
<complexType name="scopedGroupRef">
18+
<sequence>
19+
<group minOccurs="2" maxOccurs="6" ref="tns:mygroup"/>
20+
</sequence>
21+
</complexType>
22+
<complexType name="singleGroupRef">
23+
<sequence>
24+
<group minOccurs="1" maxOccurs="1" ref="tns:mygroup"/>
25+
</sequence>
26+
</complexType>
27+
<group name="mygroup">
28+
<sequence>
29+
<element name="nullable" type="string" minOccurs="0" />
30+
<element name="list" type="string" minOccurs="0" maxOccurs="unbounded" />
31+
<element name="scoped" type="string" minOccurs="3" maxOccurs="5" />
32+
<element name="single" type="string" minOccurs="1" maxOccurs="1"/>
33+
</sequence>
34+
</group>
35+
EOF;
36+
test_schema($schema,'type="tns:Element"');
37+
?>
38+
--EXPECT--
39+
Methods:
40+
> test(Element $testParam): void
41+
42+
Types:
43+
> http://test-uri/:nullableGroupRef {
44+
?string $nullable
45+
array<int<0, max>, string> $list
46+
array<int<0, 5>, string> $scoped
47+
?string $single
48+
}
49+
> http://test-uri/:listGroupRef {
50+
array<int<0, max>, string> $nullable
51+
array<int<0, max>, string> $list
52+
array<int<0, max>, string> $scoped
53+
array<int<0, max>, string> $single
54+
}
55+
> http://test-uri/:scopedGroupRef {
56+
array<int<0, 6>, string> $nullable
57+
array<int<0, max>, string> $list
58+
array<int<6, 30>, string> $scoped
59+
array<int<2, 6>, string> $single
60+
}
61+
> http://test-uri/:singleGroupRef {
62+
?string $nullable
63+
array<int<0, max>, string> $list
64+
array<int<3, 5>, string> $scoped
65+
string $single
66+
}

0 commit comments

Comments
 (0)