@@ -52,9 +52,13 @@ public function set_up()
5252 {
5353 parent ::set_up ();
5454
55+ // these 2 values are injected into the client when calling `send`, and are modified by some tests - reset them
5556 $ this ->timeout = 10 ;
57+ $ this ->method = 'http ' ;
5658
5759 $ this ->client = $ this ->getClient ();
60+
61+ /// @todo replace with setOption when dropping the BC layer
5862 $ this ->client ->request_compression = $ this ->request_compression ;
5963 $ this ->client ->accepted_compression = $ this ->accepted_compression ;
6064 }
@@ -75,6 +79,7 @@ public function tear_down()
7579 */
7680 protected function send ($ msg , $ errorCode = 0 , $ returnResponse = false )
7781 {
82+ /// @todo move to injecting timeout and method into `getClient`, use the non-legacy API calling convention
7883 $ r = $ this ->client ->send ($ msg , $ this ->timeout , $ this ->method );
7984 // for multicall, return directly array of responses
8085 if (is_array ($ r )) {
@@ -160,8 +165,8 @@ public function testExoticCharsetsRequests()
160165 // note that we should disable this call also when mbstring is missing server-side
161166 if (!function_exists ('mb_convert_encoding ' )) {
162167 $ this ->markTestSkipped ('Miss mbstring extension to test exotic charsets ' );
163- return ;
164168 }
169+
165170 $ sendString = 'κόσμε ' ; // Greek word 'kosme'
166171 $ str = '<?xml version="1.0" encoding="_ENC_"?>
167172<methodCall>
@@ -192,8 +197,8 @@ public function testExoticCharsetsRequests2()
192197 // note that we should disable this call also when mbstring is missing server-side
193198 if (!function_exists ('mb_convert_encoding ' )) {
194199 $ this ->markTestSkipped ('Miss mbstring extension to test exotic charsets ' );
195- return ;
196200 }
201+
197202 $ sendString = '安室奈美恵 ' ; // Japanese name "Namie Amuro"
198203 $ str = '<?xml version="1.0"?>
199204<methodCall>
@@ -219,8 +224,8 @@ public function testExoticCharsetsRequests3()
219224 // note that we should disable this call also when mbstring is missing server-side
220225 if (!function_exists ('mb_convert_encoding ' )) {
221226 $ this ->markTestSkipped ('Miss mbstring extension to test exotic charsets ' );
222- return ;
223227 }
228+
224229 // the warning suppression is due to utf8_decode being deprecated in php 8.2
225230 $ sendString = @utf8_decode ('élève ' );
226231 $ str = '<?xml version="1.0"?>
@@ -635,7 +640,6 @@ public function testCatchErrors()
635640 if (version_compare (PHP_VERSION , '7.0.0 ' , '< ' ))
636641 {
637642 $ this ->markTestSkipped ('Cannot test php Error on php < 7.0 ' );
638- return ;
639643 }
640644
641645 // these test for the different server error catching modes
0 commit comments