@@ -15,7 +15,7 @@ public function testSoapClientName()
1515 {
1616 $ soapClient = new SoapClient ();
1717
18- $ this ->assertSame ('\\ WsdlToPhp \\ PackageBase \\ Tests \ \Client ' , $ soapClient ->getSoapClientClassName ());
18+ $ this ->assertSame ('\WsdlToPhp\PackageBase\Tests\Client ' , $ soapClient ->getSoapClientClassName ());
1919 }
2020 /**
2121 *
@@ -24,7 +24,7 @@ public function testSoapClientNameDefault()
2424 {
2525 $ soapClient = new SoapClient ();
2626
27- $ this ->assertSame ('\SoapClient ' , $ soapClient ->getSoapClientClassName ('\\ WsdlToPhp \\ PackageBase \\ Tests \ \Clien ' ));
27+ $ this ->assertSame ('\SoapClient ' , $ soapClient ->getSoapClientClassName ('\WsdlToPhp\PackageBase\Tests\Clien ' ));
2828 }
2929 /**
3030 *
@@ -36,7 +36,7 @@ public function testSoapClient()
3636 SoapClient::WSDL_CLASSMAP => self ::classMap (),
3737 ));
3838
39- $ this ->assertInstanceOf ('\\ WsdlToPhp \\ PackageBase \\ Tests \ \Client ' , $ soapClient ->getSoapClient ());
39+ $ this ->assertInstanceOf ('\WsdlToPhp\PackageBase\Tests\Client ' , $ soapClient ->getSoapClient ());
4040 }
4141 /**
4242 *
@@ -74,7 +74,7 @@ public function testGetLastRequestAsDomDocument()
7474 SoapClient::WSDL_CLASSMAP => self ::classMap (),
7575 ));
7676
77- $ this ->assertInstanceOf ('\\ DOMDocument ' , $ soapClient ->getLastRequest (true ));
77+ $ this ->assertInstanceOf ('\DOMDocument ' , $ soapClient ->getLastRequest (true ));
7878 }
7979 /**
8080 *
@@ -98,7 +98,7 @@ public function testGetLastResponseAsDomDocument()
9898 SoapClient::WSDL_CLASSMAP => self ::classMap (),
9999 ));
100100
101- $ this ->assertInstanceOf ('\\ DOMDocument ' , $ soapClient ->getLastResponse (true ));
101+ $ this ->assertInstanceOf ('\DOMDocument ' , $ soapClient ->getLastResponse (true ));
102102 }
103103 /**
104104 *
@@ -161,7 +161,7 @@ public function testSetGetLastErrorForMethod()
161161 // this call should fail as no parameter is defined in the request
162162 $ soapClient ->search ();
163163
164- $ this ->assertInstanceOf ('\\ SoapFault ' , $ soapClient ->getLastErrorForMethod ('WsdlToPhp\PackageBase\Tests\SoapClient::search ' ));
164+ $ this ->assertInstanceOf ('\SoapFault ' , $ soapClient ->getLastErrorForMethod ('WsdlToPhp\PackageBase\Tests\SoapClient::search ' ));
165165 }
166166 /**
167167 *
@@ -333,7 +333,11 @@ public function testGetStreamContextAsNill()
333333 SoapClient::WSDL_CLASSMAP => self ::classMap (),
334334 ));
335335
336- $ this ->assertNull ($ soapClient ->getStreamContext ());
336+ if (PHP_VERSION_ID < 70013 ) {
337+ $ this ->assertNull ($ soapClient ->getStreamContext ());
338+ } else {
339+ $ this ->assertTrue (is_resource ($ soapClient ->getStreamContext ()));
340+ }
337341 }
338342 /**
339343 *
0 commit comments