Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions tests/PhpCompatibility/schema1017.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
--TEST--
SOAP XML Schema 1017: Repeating group ref around a choice exposes members as optional unbounded lists
--FILE--
<?php
include __DIR__."/test_schema.inc";
$schema = <<<EOF
<group name="Operation">
<choice>
<element name="delete" type="string" />
<element name="write" type="string" />
</choice>
</group>
<complexType name="Message">
<sequence>
<element minOccurs="0" name="transactionId" type="string" />
<group minOccurs="0" maxOccurs="unbounded" ref="tns:Operation" />
</sequence>
</complexType>
EOF;
test_schema($schema,'type="tns:Message"');
?>
--EXPECT--
Methods:
> test(Message $testParam): void

Types:
> http://test-uri/:Message {
?string $transactionId
array<int<0, max>, string> $delete
array<int<0, max>, string> $write
}
Loading