File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 22
33namespace WsdlToPhp \PackageBase \Tests ;
44
5-
65use WsdlToPhp \PackageBase \Utils ;
76use WsdlToPhp \PackageBase \Tests \SoapClient ;
87
@@ -326,14 +325,18 @@ public function testGetStreamContext()
326325 /**
327326 *
328327 */
329- public function testGetStreamContextAsNill ()
328+ public function testGetStreamContextAsNull ()
330329 {
331330 $ soapClient = new SoapClient (array (
332331 SoapClient::WSDL_URL => __DIR__ . '/resources/bingsearch.wsdl ' ,
333332 SoapClient::WSDL_CLASSMAP => self ::classMap (),
334333 ));
335334
336- $ this ->assertNull ($ soapClient ->getStreamContext ());
335+ if (PHP_VERSION_ID < 70013 ) {
336+ $ this ->assertNull ($ soapClient ->getStreamContext ());
337+ } else {
338+ $ this ->assertTrue (is_resource ($ soapClient ->getStreamContext ()));
339+ }
337340 }
338341 /**
339342 *
You can’t perform that action at this time.
0 commit comments