From ef30bf82e17b593e42eb0d664f951d810f83a1b2 Mon Sep 17 00:00:00 2001 From: Toon Verwerft Date: Thu, 11 Jun 2026 14:50:40 +0200 Subject: [PATCH] Add e2e test for a repeating group ref around a choice Covers transfer.operation-style schemas where a group referenced with maxOccurs="unbounded" wraps a choice: both choice members must be read as optional, unbounded list elements on the referencing type. Depends on goetas-webservices/xsd-reader#93 (the Choice occurrence propagation). Until that is released and the xsd-reader constraint is bumped, this test fails against the published dependency. --- tests/PhpCompatibility/schema1017.phpt | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tests/PhpCompatibility/schema1017.phpt diff --git a/tests/PhpCompatibility/schema1017.phpt b/tests/PhpCompatibility/schema1017.phpt new file mode 100644 index 0000000..f6d3f47 --- /dev/null +++ b/tests/PhpCompatibility/schema1017.phpt @@ -0,0 +1,31 @@ +--TEST-- +SOAP XML Schema 1017: Repeating group ref around a choice exposes members as optional unbounded lists +--FILE-- + + + + + + + + + + + + +EOF; +test_schema($schema,'type="tns:Message"'); +?> +--EXPECT-- +Methods: + > test(Message $testParam): void + +Types: + > http://test-uri/:Message { + ?string $transactionId + array, string> $delete + array, string> $write + }