File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ public static function setSoapClient(\SoapClient $soapClient)
6666 */
6767 public function initSoapClient (array $ options )
6868 {
69+ self ::$ soapClient = null ;
6970 $ wsdlOptions = [];
7071 $ defaultWsdlOptions = static ::getDefaultWsdlOptions ();
7172 foreach ($ defaultWsdlOptions as $ optionName => $ optionValue ) {
Original file line number Diff line number Diff line change @@ -490,7 +490,7 @@ public function testInvalidNonWsdlModeMustNotCreateASoapInstanceForMissingUriAnd
490490 SoapClient::WSDL_URL => null ,
491491 ));
492492
493- $ this ->assertNull ($ soapClient -> getSoapClient ());
493+ $ this ->assertNull (SoapClient:: getSoapClient ());
494494 }
495495 /**
496496 *
@@ -502,7 +502,7 @@ public function testInvalidNonWsdlModeMustNotCreateASoapInstanceForMissingLocati
502502 SoapClient::WSDL_URI => 'http://api.bing.net:80/soap.asmx ' ,
503503 ));
504504
505- $ this ->assertNull ($ soapClient -> getSoapClient ());
505+ $ this ->assertNull (SoapClient:: getSoapClient ());
506506 }
507507 /**
508508 *
@@ -514,7 +514,7 @@ public function testInvalidNonWsdlModeMustNotCreateASoapInstanceForMissingUriOpt
514514 SoapClient::WSDL_LOCATION => 'http://api.bing.net:80/soap.asmx ' ,
515515 ));
516516
517- $ this ->assertNull ($ soapClient -> getSoapClient ());
517+ $ this ->assertNull (SoapClient:: getSoapClient ());
518518 }
519519 /**
520520 *
@@ -527,6 +527,6 @@ public function testInvalidNonWsdlModeMustCreateASoapInstanceWithUriAndLocationO
527527 SoapClient::WSDL_URI => 'http://api.bing.net:80/soap.asmx ' ,
528528 ));
529529
530- $ this ->assertInstanceOf ('\SoapClient ' , $ soapClient -> getSoapClient ());
530+ $ this ->assertInstanceOf ('\SoapClient ' , SoapClient:: getSoapClient ());
531531 }
532532}
You can’t perform that action at this time.
0 commit comments