-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
171 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--TEST-- | ||
SOAP XML Schema 1005: Nested inline elements wrapped in choice element container | ||
--FILE-- | ||
<?php | ||
include __DIR__."/test_schema.inc"; | ||
$schema = <<<EOF | ||
<complexType name="LoyaltyTravelInfoType"> | ||
<choice> | ||
<element name="HotelStayInfo"> | ||
<complexType> | ||
<sequence> | ||
<element name="ReservationID" type="string" /> | ||
</sequence> | ||
</complexType> | ||
</element> | ||
<element name="AirFlightInfo"> | ||
<complexType> | ||
<sequence> | ||
<element name="FlightSegment" type="string"/> | ||
</sequence> | ||
</complexType> | ||
</element> | ||
</choice> | ||
</complexType> | ||
EOF; | ||
test_schema($schema,'type="tns:LoyaltyTravelInfoType"'); | ||
?> | ||
--EXPECT-- | ||
Methods: | ||
> test(LoyaltyTravelInfoType $testParam): void | ||
|
||
Types: | ||
> http://test-uri/:LoyaltyTravelInfoType { | ||
?HotelStayInfo $HotelStayInfo | ||
?AirFlightInfo $AirFlightInfo | ||
} | ||
> http://test-uri/:HotelStayInfo { | ||
?string $ReservationID | ||
} | ||
> http://test-uri/:AirFlightInfo { | ||
?string $FlightSegment | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--TEST-- | ||
SOAP XML Schema 1006: simple element types | ||
--FILE-- | ||
<?php | ||
include __DIR__."/test_schema.inc"; | ||
$schema = <<<EOF | ||
<element name="AcknowledgeReceipt" type="anyType" /> | ||
EOF; | ||
test_schema($schema,'type="tns:AcknowledgeReceipt"'); | ||
?> | ||
--EXPECT-- | ||
Methods: | ||
> test(AcknowledgeReceipt $testParam): void | ||
|
||
Types: | ||
> http://test-uri/:AcknowledgeReceipt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--TEST-- | ||
SOAP XML Schema 1007: Deeply nested complex-type declarations inside complexTypes | ||
--FILE-- | ||
<?php | ||
include __DIR__."/test_schema.inc"; | ||
$schema = <<<EOF | ||
<complexType name="LocationType"> | ||
<simpleContent> | ||
<extension base="string"> | ||
<attribute name="LocationCode" type="string" use="optional" /> | ||
</extension> | ||
</simpleContent> | ||
</complexType> | ||
<complexType name="VerificationType"> | ||
<sequence> | ||
<element name="Email" type="string" minOccurs="0" /> | ||
<element name="StartLocation" minOccurs="0"> | ||
<complexType> | ||
<simpleContent> | ||
<extension base="tns:LocationType"> | ||
<attribute name="AssociatedDateTime" type="dateTime" use="optional" /> | ||
</extension> | ||
</simpleContent> | ||
</complexType> | ||
</element> | ||
</sequence> | ||
</complexType> | ||
EOF; | ||
test_schema($schema,'type="tns:VerificationType"'); | ||
?> | ||
--EXPECT-- | ||
Methods: | ||
> test(VerificationType $testParam): void | ||
|
||
Types: | ||
> http://test-uri/:LocationType extends string { | ||
string $_ | ||
@string $LocationCode | ||
} | ||
> http://test-uri/:VerificationType { | ||
?string $Email | ||
?StartLocation $StartLocation | ||
} | ||
> http://test-uri/:StartLocation extends LocationType { | ||
string $_ | ||
@string $LocationCode | ||
@dateTime $AssociatedDateTime | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters