-
-
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
4 changed files
with
47 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--TEST-- | ||
SOAP XML Schema 1004: Nested simple types | ||
--FILE-- | ||
<?php | ||
include __DIR__."/test_schema.inc"; | ||
$schema = <<<EOF | ||
<simpleType name="StringLength1to128"> | ||
<restriction base="string"> | ||
<minLength value="1"/> | ||
<maxLength value="128"/> | ||
</restriction> | ||
</simpleType> | ||
<complexType name="EmailType"> | ||
<simpleContent> | ||
<extension base="tns:StringLength1to128"> | ||
<attribute name="EmailType" type="string" use="optional" /> | ||
</extension> | ||
</simpleContent> | ||
</complexType> | ||
<complexType name="VerificationType"> | ||
<sequence> | ||
<element name="Email" type="tns:EmailType" minOccurs="0"> | ||
</element> | ||
</sequence> | ||
</complexType> | ||
EOF; | ||
test_schema($schema,'type="tns:SpecialEquipPrefs"'); | ||
?> | ||
--EXPECT-- | ||
Methods: | ||
> test(SpecialEquipPrefs $testParam): void | ||
|
||
Types: | ||
> http://test-uri/:StringLength1to128 extends string | ||
> http://test-uri/:EmailType extends StringLength1to128 { | ||
StringLength1to128 $_ | ||
@string $EmailType | ||
} | ||
> http://test-uri/:VerificationType { | ||
?EmailType $Email | ||
} |