1 | <?php |
||
26 | class SoapContext extends RawSoapContext |
||
27 | { |
||
28 | /** |
||
29 | * @var mixed |
||
30 | */ |
||
31 | private $value; |
||
32 | private $fault; |
||
33 | |||
34 | /** |
||
35 | * Sets the WSDL for the next SOAP request. |
||
36 | * |
||
37 | * @param string $wsdl |
||
38 | * Publicly accessible URL to wsdl |
||
39 | * |
||
40 | * @Given I am working with SOAP service WSDL :wsdl |
||
41 | */ |
||
42 | public function iAmWorkingWithSoapServiceWSDL($wsdl) |
||
46 | |||
47 | /** |
||
48 | * Sets the WSDL for the next SOAP request to NULL. |
||
49 | * |
||
50 | * @Given I am working with SOAP service in non-WSDL mode |
||
51 | */ |
||
52 | public function iAmWorkingWithSoapServiceNoWSDL() |
||
56 | |||
57 | /** |
||
58 | * @Given I am working with SOAP service with options list: |
||
59 | */ |
||
60 | public function iAmWorkingWithSoapServiceWithOptions(TableNode $options) |
||
66 | |||
67 | /** |
||
68 | * @Given I am working with SOAP service with options as YAML: |
||
69 | */ |
||
70 | public function iAmWorkingWithSoapServiceWithOptionsYaml(PyStringNode $options) |
||
76 | |||
77 | /** |
||
78 | * Send SOAP request with params list. |
||
79 | * |
||
80 | * @Given I call SOAP function :function with params list: |
||
81 | */ |
||
82 | public function iSendRequestWithParams($function, TableNode $params) |
||
86 | |||
87 | /** |
||
88 | * Send SOAP request with params as nested array. |
||
89 | * |
||
90 | * @Given I call SOAP function :function with params as json: |
||
91 | */ |
||
92 | public function iSendRequestWithNestedParamsArray($function, PyStringNode $json) |
||
96 | |||
97 | /** |
||
98 | * Send SOAP request with raw body. |
||
99 | * |
||
100 | * @Given I call SOAP with raw body: |
||
101 | */ |
||
102 | public function iSendRequestBody(PyStringNode $body) |
||
109 | |||
110 | /** |
||
111 | * Send SOAP request with function arguments array as YAML. |
||
112 | * |
||
113 | * @Given I call SOAP function :function with arguments array as YAML: |
||
114 | */ |
||
115 | public function iSendRequestYAML($function, PyStringNode $arguments) |
||
120 | |||
121 | /** |
||
122 | * @Given I register the following XPATH namespaces: |
||
123 | */ |
||
124 | public function iRegisterXpathNamespaces(TableNode $namespaces) |
||
130 | |||
131 | /** |
||
132 | * @Then /^(?:|I )expect SOAP exception(?:| with code "(\d+)")(?:|( and| or)? with message "([^"]+?)")$/ |
||
133 | */ |
||
134 | public function expectException($code = null, $condition = null, $message = null) |
||
146 | |||
147 | /** |
||
148 | * @Given I should see SOAP response property :property equals to :text |
||
149 | */ |
||
150 | public function iShouldSeeSoapResponsePropertyEquals($text, $property) |
||
154 | |||
155 | /** |
||
156 | * @Given I should see SOAP response property :property is not :text |
||
157 | */ |
||
158 | public function iShouldSeeSoapResponsePropertyNotEquals($text, $property) |
||
162 | |||
163 | /** |
||
164 | * @Given I should see SOAP response property :property contains :text |
||
165 | */ |
||
166 | public function iShouldSeeSoapResponsePropertyContains($text, $property) |
||
170 | |||
171 | /** |
||
172 | * @Given I should see SOAP response property :property doesn't contain :text |
||
173 | */ |
||
174 | public function iShouldSeeSoapResponsePropertyNotContains($text, $property) |
||
178 | |||
179 | /** |
||
180 | * @Then I should see SOAP response property :property matching pattern :pattern |
||
181 | */ |
||
182 | public function iShouldSeeSoapResponsePropertyMatches($pattern, $property) |
||
186 | |||
187 | /** |
||
188 | * @Then I should see that SOAP Response matches XPATH :xpath |
||
189 | */ |
||
190 | public function iShouldSeeThatSOAPResponseMatchesXpath($xpath) |
||
197 | |||
198 | /** |
||
199 | * @Given I am working with SOAP response property :property |
||
200 | */ |
||
201 | public function iWorkWithResponseProperty($property) |
||
205 | |||
206 | /** |
||
207 | * @Given I am working with SOAP element matching XPATH :xpath |
||
208 | */ |
||
209 | public function iWorkWithElementTextMatchingXPATH($xpath) |
||
213 | |||
214 | /** |
||
215 | * @Then saved SOAP value equals to :text |
||
216 | */ |
||
217 | public function savedValueEquals($text) |
||
221 | |||
222 | /** |
||
223 | * @Then saved SOAP value is not equal to :text |
||
224 | */ |
||
225 | public function savedValueNotEquals($text) |
||
229 | |||
230 | /** |
||
231 | * @Then saved SOAP value contains :text |
||
232 | */ |
||
233 | public function savedValueContains($text) |
||
237 | |||
238 | /** |
||
239 | * @Then saved SOAP value doesn't contain :text |
||
240 | */ |
||
241 | public function savedValueNotContains($text) |
||
245 | |||
246 | /** |
||
247 | * @Then saved SOAP value matches :pattern |
||
248 | */ |
||
249 | public function savedValueMatchesRegExp($pattern) |
||
253 | |||
254 | /** |
||
255 | * @Then saved SOAP value doesn't match :pattern |
||
256 | */ |
||
257 | public function savedValueNotMatchesRegExp($pattern) |
||
261 | |||
262 | /** |
||
263 | * @BeforeStep |
||
264 | */ |
||
265 | public function beforeStepCheckForException(BeforeStepScope $scope) |
||
275 | } |
||
276 |
There are different options of fixing this problem.
If you want to be on the safe side, you can add an additional type-check:
If you are sure that the expression is traversable, you might want to add a doc comment cast to improve IDE auto-completion and static analysis:
Mark the issue as a false-positive: Just hover the remove button, in the top-right corner of this issue for more options.