@@ -33,14 +33,15 @@ public function test_it_can_parse_ext_soap_function_strings()
33
33
'TestResponse Test0Param() ' ,
34
34
'TestResponse Test1Param(Test1 $parameter1) ' ,
35
35
'TestResponse Test2Param(Test1 $parameter1, Test2 $parameter2) ' ,
36
- 'list(Response1 $response1, Response2 $response2) TestReturnList() ' ,
36
+ 'list(Response1 $response1, Response-2 $response2, Response_3 $response3 ) TestReturnList() ' ,
37
37
'list(Response1 $response1, Response2 $response2) TestReturnListWithParams(Test1 $parameter1, Test2 $parameter2) ' ,
38
38
'simpleType TestSimpleType(simpleType $parameter1) ' ,
39
+ 'Test-Response Test-Method(Test-1 $parameter-1) ' ,
40
+ 'Test_Response Test_Method(Test_1 $parameter_1) ' ,
39
41
]
40
42
]);
41
43
42
44
$ result = $ this ->parser ->parse ($ client );
43
-
44
45
static ::assertCount (count ($ methods ), $ result );
45
46
static ::assertEquals (
46
47
new Method (
@@ -100,5 +101,25 @@ public function test_it_can_parse_ext_soap_function_strings()
100
101
),
101
102
$ result ->fetchByName ('TestSimpleType ' )
102
103
);
104
+ static ::assertEquals (
105
+ new Method (
106
+ 'Test-Method ' ,
107
+ new ParameterCollection (
108
+ new Parameter ('parameter-1 ' , XsdType::create ('Test-1 ' ))
109
+ ),
110
+ XsdType::create ('Test-Response ' )
111
+ ),
112
+ $ result ->fetchByName ('Test-Method ' )
113
+ );
114
+ static ::assertEquals (
115
+ new Method (
116
+ 'Test_Method ' ,
117
+ new ParameterCollection (
118
+ new Parameter ('parameter_1 ' , XsdType::create ('Test_1 ' ))
119
+ ),
120
+ XsdType::create ('Test_Response ' )
121
+ ),
122
+ $ result ->fetchByName ('Test_Method ' )
123
+ );
103
124
}
104
125
}
0 commit comments