Completed
Push — master ( b37706...ce870f )
by Gaetano
04:10
created
tests/4LocalhostMultiTest.php 2 patches
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
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.
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
         );
29 29
 
30 30
         $methods = array();
31
-        foreach(get_class_methods('LocalhostTest') as $method)
31
+        foreach (get_class_methods('LocalhostTest') as $method)
32 32
         {
33
-            if(strpos($method, 'test') === 0 && !in_array($method, $unsafeMethods))
33
+            if (strpos($method, 'test') === 0 && !in_array($method, $unsafeMethods))
34 34
             {
35 35
                 if (!isset(self::$failed_tests[$method])) {
36 36
                     $methods[$method] = array($method);
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function testDeflate($method)
49 49
     {
50
-        if(!function_exists('gzdeflate'))
50
+        if (!function_exists('gzdeflate'))
51 51
         {
52 52
             $this->markTestSkipped('Zlib missing: cannot test deflate functionality');
53 53
             return;
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function testGzip($method)
67 67
     {
68
-        if(!function_exists('gzdeflate'))
68
+        if (!function_exists('gzdeflate'))
69 69
         {
70 70
             $this->markTestSkipped('Zlib missing: cannot test gzip functionality');
71 71
             return;
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
     public function testKeepAlives()
81 81
     {
82
-        if(!function_exists('curl_init'))
82
+        if (!function_exists('curl_init'))
83 83
         {
84 84
             $this->markTestSkipped('CURL missing: cannot test http 1.1');
85 85
             return;
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     public function testHttp11($method)
121 121
     {
122
-        if(!function_exists('curl_init'))
122
+        if (!function_exists('curl_init'))
123 123
         {
124 124
             $this->markTestSkipped('CURL missing: cannot test http 1.1');
125 125
             return;
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function testHttp11Gzip($method)
140 140
     {
141
-        if(!function_exists('curl_init'))
141
+        if (!function_exists('curl_init'))
142 142
         {
143 143
             $this->markTestSkipped('CURL missing: cannot test http 1.1');
144 144
             return;
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      */
159 159
     public function testHttp11Deflate($method)
160 160
     {
161
-        if(!function_exists('curl_init'))
161
+        if (!function_exists('curl_init'))
162 162
         {
163 163
             $this->markTestSkipped('CURL missing: cannot test http 1.1');
164 164
             return;
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      */
179 179
     public function testHttp11Proxy($method)
180 180
     {
181
-        if(!function_exists('curl_init'))
181
+        if (!function_exists('curl_init'))
182 182
         {
183 183
             $this->markTestSkipped('CURL missing: cannot test http 1.1 w. proxy');
184 184
             return;
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      */
204 204
     public function testHttps($method)
205 205
     {
206
-        if(!function_exists('curl_init'))
206
+        if (!function_exists('curl_init'))
207 207
         {
208 208
             $this->markTestSkipped('CURL missing: cannot test https functionality');
209 209
             return;
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      */
232 232
     public function testHttpsProxy($method)
233 233
     {
234
-        if(!function_exists('curl_init'))
234
+        if (!function_exists('curl_init'))
235 235
         {
236 236
             $this->markTestSkipped('CURL missing: cannot test https w. proxy');
237 237
             return;
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -182,8 +182,7 @@  discard block
 block discarded – undo
182 182
         {
183 183
             $this->markTestSkipped('CURL missing: cannot test http 1.1 w. proxy');
184 184
             return;
185
-        }
186
-        else if ($this->args['PROXYSERVER'] == '')
185
+        } else if ($this->args['PROXYSERVER'] == '')
187 186
         {
188 187
             $this->markTestSkipped('PROXY definition missing: cannot test proxy w. http 1.1');
189 188
             return;
@@ -207,8 +206,7 @@  discard block
 block discarded – undo
207 206
         {
208 207
             $this->markTestSkipped('CURL missing: cannot test https functionality');
209 208
             return;
210
-        }
211
-        else if ($this->args['HTTPSSERVER'] == '')
209
+        } else if ($this->args['HTTPSSERVER'] == '')
212 210
         {
213 211
             $this->markTestSkipped('HTTPS SERVER definition missing: cannot test https');
214 212
             return;
@@ -235,13 +233,11 @@  discard block
 block discarded – undo
235 233
         {
236 234
             $this->markTestSkipped('CURL missing: cannot test https w. proxy');
237 235
             return;
238
-        }
239
-        else if ($this->args['PROXYSERVER'] == '')
236
+        } else if ($this->args['PROXYSERVER'] == '')
240 237
         {
241 238
             $this->markTestSkipped('PROXY definition missing: cannot test proxy w. https');
242 239
             return;
243
-        }
244
-        else if ($this->args['HTTPSSERVER'] == '')
240
+        } else if ($this->args['HTTPSSERVER'] == '')
245 241
         {
246 242
             $this->markTestSkipped('HTTPS SERVER definition missing: cannot test https w. proxy');
247 243
             return;
Please login to merge, or discard this patch.