@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -include_once __DIR__ . '/../lib/xmlrpc.inc'; |
|
| 4 | -include_once __DIR__ . '/../lib/xmlrpc_wrappers.inc'; |
|
| 3 | +include_once __DIR__.'/../lib/xmlrpc.inc'; |
|
| 4 | +include_once __DIR__.'/../lib/xmlrpc_wrappers.inc'; |
|
| 5 | 5 | |
| 6 | -include_once __DIR__ . '/parse_args.php'; |
|
| 6 | +include_once __DIR__.'/parse_args.php'; |
|
| 7 | 7 | |
| 8 | -include_once __DIR__ . '/3LocalhostTest.php'; |
|
| 8 | +include_once __DIR__.'/3LocalhostTest.php'; |
|
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * Tests which stress http features of the library. |
@@ -27,9 +27,9 @@ discard block |
||
| 27 | 27 | ); |
| 28 | 28 | |
| 29 | 29 | $methods = array(); |
| 30 | - foreach(get_class_methods('LocalhostTest') as $method) |
|
| 30 | + foreach (get_class_methods('LocalhostTest') as $method) |
|
| 31 | 31 | { |
| 32 | - if(strpos($method, 'test') === 0 && !in_array($method, $unsafeMethods)) |
|
| 32 | + if (strpos($method, 'test') === 0 && !in_array($method, $unsafeMethods)) |
|
| 33 | 33 | { |
| 34 | 34 | if (!isset(self::$failed_tests[$method])) { |
| 35 | 35 | $methods[$method] = array($method); |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | public function testDeflate($method) |
| 48 | 48 | { |
| 49 | - if(!function_exists('gzdeflate')) |
|
| 49 | + if (!function_exists('gzdeflate')) |
|
| 50 | 50 | { |
| 51 | 51 | $this->markTestSkipped('Zlib missing: cannot test deflate functionality'); |
| 52 | 52 | return; |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | */ |
| 65 | 65 | public function testGzip($method) |
| 66 | 66 | { |
| 67 | - if(!function_exists('gzdeflate')) |
|
| 67 | + if (!function_exists('gzdeflate')) |
|
| 68 | 68 | { |
| 69 | 69 | $this->markTestSkipped('Zlib missing: cannot test gzip functionality'); |
| 70 | 70 | return; |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | public function testKeepAlives() |
| 80 | 80 | { |
| 81 | - if(!function_exists('curl_init')) |
|
| 81 | + if (!function_exists('curl_init')) |
|
| 82 | 82 | { |
| 83 | 83 | $this->markTestSkipped('CURL missing: cannot test http 1.1'); |
| 84 | 84 | return; |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | */ |
| 119 | 119 | public function testHttp11($method) |
| 120 | 120 | { |
| 121 | - if(!function_exists('curl_init')) |
|
| 121 | + if (!function_exists('curl_init')) |
|
| 122 | 122 | { |
| 123 | 123 | $this->markTestSkipped('CURL missing: cannot test http 1.1'); |
| 124 | 124 | return; |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | */ |
| 138 | 138 | public function testHttp10Curl($method) |
| 139 | 139 | { |
| 140 | - if(!function_exists('curl_init')) |
|
| 140 | + if (!function_exists('curl_init')) |
|
| 141 | 141 | { |
| 142 | 142 | $this->markTestSkipped('CURL missing: cannot test http 1.1'); |
| 143 | 143 | return; |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | */ |
| 158 | 158 | public function testHttp11Gzip($method) |
| 159 | 159 | { |
| 160 | - if(!function_exists('curl_init')) |
|
| 160 | + if (!function_exists('curl_init')) |
|
| 161 | 161 | { |
| 162 | 162 | $this->markTestSkipped('CURL missing: cannot test http 1.1'); |
| 163 | 163 | return; |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | */ |
| 178 | 178 | public function testHttp11Deflate($method) |
| 179 | 179 | { |
| 180 | - if(!function_exists('curl_init')) |
|
| 180 | + if (!function_exists('curl_init')) |
|
| 181 | 181 | { |
| 182 | 182 | $this->markTestSkipped('CURL missing: cannot test http 1.1'); |
| 183 | 183 | return; |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | */ |
| 198 | 198 | public function testHttp11Proxy($method) |
| 199 | 199 | { |
| 200 | - if(!function_exists('curl_init')) |
|
| 200 | + if (!function_exists('curl_init')) |
|
| 201 | 201 | { |
| 202 | 202 | $this->markTestSkipped('CURL missing: cannot test http 1.1 w. proxy'); |
| 203 | 203 | return; |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | */ |
| 223 | 223 | public function testHttps($method) |
| 224 | 224 | { |
| 225 | - if(!function_exists('curl_init')) |
|
| 225 | + if (!function_exists('curl_init')) |
|
| 226 | 226 | { |
| 227 | 227 | $this->markTestSkipped('CURL missing: cannot test https functionality'); |
| 228 | 228 | return; |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | */ |
| 275 | 275 | public function testHttpsProxy($method) |
| 276 | 276 | { |
| 277 | - if(!function_exists('curl_init')) |
|
| 277 | + if (!function_exists('curl_init')) |
|
| 278 | 278 | { |
| 279 | 279 | $this->markTestSkipped('CURL missing: cannot test https w. proxy'); |
| 280 | 280 | return; |