@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -include_once __DIR__ . '/08ServerTest.php'; |
|
| 3 | +include_once __DIR__.'/08ServerTest.php'; |
|
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | 6 | * Tests which stress http features of the library. |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | ); |
| 26 | 26 | |
| 27 | 27 | $methods = array(); |
| 28 | - foreach(get_class_methods('ServerTest') as $method) |
|
| 28 | + foreach (get_class_methods('ServerTest') as $method) |
|
| 29 | 29 | { |
| 30 | 30 | if (strpos($method, 'test') === 0 && !in_array($method, $unsafeMethods)) |
| 31 | 31 | { |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | if (version_compare(PHP_VERSION, '8.0', '>') && $this->args['SSLVERSION'] == 0) |
| 296 | 296 | { |
| 297 | 297 | $version = explode('.', PHP_VERSION); |
| 298 | - $this->client->setSSLVersion(4 + $version[1]); |
|
| 298 | + $this->client->setSSLVersion(4+$version[1]); |
|
| 299 | 299 | } |
| 300 | 300 | |
| 301 | 301 | $this->$method(); |
@@ -325,7 +325,7 @@ discard block |
||
| 325 | 325 | preg_match('/ubunutu([0-9]+)/', $output[0], $matches); |
| 326 | 326 | $ubuntuVersion = @$matches[1]; |
| 327 | 327 | } |
| 328 | - if ($ubuntuVersion >= 20) { |
|
| 328 | + if ($ubuntuVersion>=20) { |
|
| 329 | 329 | $this->markTestSkipped('HTTPS via Socket known to fail on php less than 7.2 on Ubuntu 20 and higher'); |
| 330 | 330 | return; |
| 331 | 331 | } |
@@ -344,9 +344,9 @@ discard block |
||
| 344 | 344 | { |
| 345 | 345 | $version = explode('.', PHP_VERSION); |
| 346 | 346 | $this->client->setOption(\PhpXmlRpc\Client::OPT_EXTRA_SOCKET_OPTS, |
| 347 | - array('ssl' => array('security_level' => 2 + $version[1]))); |
|
| 347 | + array('ssl' => array('security_level' => 2+$version[1]))); |
|
| 348 | 348 | if ($this->args['SSLVERSION'] == 0) { |
| 349 | - $this->client->setSSLVersion(4 + $version[1]); |
|
| 349 | + $this->client->setSSLVersion(4+$version[1]); |
|
| 350 | 350 | } |
| 351 | 351 | } |
| 352 | 352 | |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | if (version_compare(PHP_VERSION, '8.0', '>') && $this->args['SSLVERSION'] == 0) |
| 388 | 388 | { |
| 389 | 389 | $version = explode('.', PHP_VERSION); |
| 390 | - $this->client->setSSLVersion(4 + $version[1]); |
|
| 390 | + $this->client->setSSLVersion(4+$version[1]); |
|
| 391 | 391 | } |
| 392 | 392 | |
| 393 | 393 | $this->$method(); |