@@ -23,14 +23,16 @@ |
||
| 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 |
@@ -26,14 +26,16 @@ |
||
| 26 | 26 | $this->client->setDebug($this->args['DEBUG']); |
| 27 | 27 | |
| 28 | 28 | // in debug mode, the client will be very verbose. Avoid showing its output unless there are errors |
| 29 | - if ($this->args['DEBUG'] >= 1) |
|
| 30 | - ob_start(); |
|
| 29 | + if ($this->args['DEBUG'] >= 1) { |
|
| 30 | + ob_start(); |
|
| 31 | + } |
|
| 31 | 32 | } |
| 32 | 33 | |
| 33 | 34 | protected function tear_down() |
| 34 | 35 | { |
| 35 | - if ($this->args['DEBUG'] < 1) |
|
| 36 | - return; |
|
| 36 | + if ($this->args['DEBUG'] < 1) { |
|
| 37 | + return; |
|
| 38 | + } |
|
| 37 | 39 | $out = ob_get_clean(); |
| 38 | 40 | $status = $this->getStatus(); |
| 39 | 41 | if ($status == BaseTestRunner::STATUS_ERROR |
@@ -109,14 +109,16 @@ |
||
| 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 |
@@ -22,14 +22,16 @@ |
||
| 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 |