Passed
Push — master ( 8ff19d...02b7f4 )
by Gaetano
05:49
created
tests/08ServerTest.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -109,14 +109,16 @@
 block discarded – undo
109 109
         $this->coverageScriptUrl = 'http://' . $this->args['HTTPSERVER'] . preg_replace('|/tests/index\.php(\?.*)?|', '/tests/phpunit_coverage.php', $this->args['HTTPURI']);
110 110
 
111 111
         // in debug mode, the client will be very verbose. Avoid showing its output unless there are errors
112
-        if ($this->args['DEBUG'] >= 1)
113
-            ob_start();
112
+        if ($this->args['DEBUG'] >= 1) {
113
+                    ob_start();
114
+        }
114 115
     }
115 116
 
116 117
     protected function tear_down()
117 118
     {
118
-        if ($this->args['DEBUG'] < 1)
119
-            return;
119
+        if ($this->args['DEBUG'] < 1) {
120
+                    return;
121
+        }
120 122
         $out = ob_get_clean();
121 123
         $status = $this->getStatus();
122 124
         if ($status == BaseTestRunner::STATUS_ERROR
Please login to merge, or discard this patch.
tests/04ParsingTest.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,14 +22,16 @@
 block discarded – undo
22 22
     {
23 23
         $this->args = argParser::getArgs();
24 24
         // hide parsing errors unless in debug mode
25
-        if ($this->args['DEBUG'] < 1)
26
-            ob_start();
25
+        if ($this->args['DEBUG'] < 1) {
26
+                    ob_start();
27
+        }
27 28
     }
28 29
 
29 30
     protected function tear_down()
30 31
     {
31
-        if ($this->args['DEBUG'] >= 1)
32
-            return;
32
+        if ($this->args['DEBUG'] >= 1) {
33
+                    return;
34
+        }
33 35
         $out = ob_get_clean();
34 36
         $status = $this->getStatus();
35 37
         if ($status == BaseTestRunner::STATUS_ERROR
Please login to merge, or discard this patch.
tests/03MessagesTest.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,14 +23,16 @@
 block discarded – undo
23 23
     {
24 24
         $this->args = argParser::getArgs();
25 25
         // hide parsing errors unless in debug mode
26
-        if ($this->args['DEBUG'] == 1)
27
-            ob_start();
26
+        if ($this->args['DEBUG'] == 1) {
27
+                    ob_start();
28
+        }
28 29
     }
29 30
 
30 31
     protected function tear_down()
31 32
     {
32
-        if ($this->args['DEBUG'] != 1)
33
-            return;
33
+        if ($this->args['DEBUG'] != 1) {
34
+                    return;
35
+        }
34 36
         $out = ob_get_clean();
35 37
         $status = $this->getStatus();
36 38
         if ($status == BaseTestRunner::STATUS_ERROR
Please login to merge, or discard this patch.