33namespace WsdlToPhp \PackageBase \Tests ;
44
55use WsdlToPhp \PackageBase \Utils ;
6- use WsdlToPhp \PackageBase \Tests \SoapClient ;
76
87class SoapClientTest extends TestCase
98{
@@ -486,7 +485,7 @@ public static function classMap()
486485 */
487486 public function testInvalidNonWsdlModeMustNotCreateASoapInstanceForMissingUriAndLocationOptions ()
488487 {
489- $ soapClient = new SoapClient (array (
488+ new SoapClient (array (
490489 SoapClient::WSDL_URL => null ,
491490 ));
492491
@@ -497,7 +496,7 @@ public function testInvalidNonWsdlModeMustNotCreateASoapInstanceForMissingUriAnd
497496 */
498497 public function testInvalidNonWsdlModeMustNotCreateASoapInstanceForMissingLocationOption ()
499498 {
500- $ soapClient = new SoapClient (array (
499+ new SoapClient (array (
501500 SoapClient::WSDL_URL => null ,
502501 SoapClient::WSDL_URI => 'http://api.bing.net:80/soap.asmx ' ,
503502 ));
@@ -509,7 +508,7 @@ public function testInvalidNonWsdlModeMustNotCreateASoapInstanceForMissingLocati
509508 */
510509 public function testInvalidNonWsdlModeMustNotCreateASoapInstanceForMissingUriOption ()
511510 {
512- $ soapClient = new SoapClient (array (
511+ new SoapClient (array (
513512 SoapClient::WSDL_URL => null ,
514513 SoapClient::WSDL_LOCATION => 'http://api.bing.net:80/soap.asmx ' ,
515514 ));
@@ -521,12 +520,26 @@ public function testInvalidNonWsdlModeMustNotCreateASoapInstanceForMissingUriOpt
521520 */
522521 public function testInvalidNonWsdlModeMustCreateASoapInstanceWithUriAndLocationOptions ()
523522 {
524- $ soapClient = new SoapClient (array (
523+ new SoapClient (array (
525524 SoapClient::WSDL_URL => null ,
526525 SoapClient::WSDL_LOCATION => 'http://api.bing.net:80/soap.asmx ' ,
527526 SoapClient::WSDL_URI => 'http://api.bing.net:80/soap.asmx ' ,
528527 ));
529528
530529 $ this ->assertInstanceOf ('\SoapClient ' , SoapClient::getSoapClient ());
531530 }
531+ /**
532+ *
533+ */
534+ public function testGetOutputHeadersWithoutRequestMustReturnAnEmptyArray ()
535+ {
536+ $ soapClient = new SoapClient (array (
537+ SoapClient::WSDL_URL => null ,
538+ SoapClient::WSDL_LOCATION => 'http://api.bing.net:80/soap.asmx ' ,
539+ SoapClient::WSDL_URI => 'http://api.bing.net:80/soap.asmx ' ,
540+ ));
541+
542+ $ this ->assertTrue (is_array ($ soapClient ->getOutputHeaders ()));
543+ $ this ->assertEmpty ($ soapClient ->getOutputHeaders ());
544+ }
532545}
0 commit comments