@@ -22,14 +22,16 @@ |
||
22 | 22 | $this->client = new xmlrpc_client('/NOTEXIST.php', $this->args['LOCALSERVER'], 80); |
23 | 23 | $this->client->setDebug($this->args['DEBUG']); |
24 | 24 | |
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 == PHPUnit_Runner_BaseTestRunner::STATUS_ERROR |
@@ -19,14 +19,16 @@ |
||
19 | 19 | protected function set_up() |
20 | 20 | { |
21 | 21 | $this->args = argParser::getArgs(); |
22 | - if ($this->args['DEBUG'] == 1) |
|
23 | - ob_start(); |
|
22 | + if ($this->args['DEBUG'] == 1) { |
|
23 | + ob_start(); |
|
24 | + } |
|
24 | 25 | } |
25 | 26 | |
26 | 27 | protected function tear_down() |
27 | 28 | { |
28 | - if ($this->args['DEBUG'] != 1) |
|
29 | - return; |
|
29 | + if ($this->args['DEBUG'] != 1) { |
|
30 | + return; |
|
31 | + } |
|
30 | 32 | $out = ob_get_clean(); |
31 | 33 | $status = $this->getStatus(); |
32 | 34 | if ($status == PHPUnit_Runner_BaseTestRunner::STATUS_ERROR |
@@ -100,14 +100,16 @@ |
||
100 | 100 | |
101 | 101 | $this->coverageScriptUrl = 'http://' . $this->args['LOCALSERVER'] . '/' . str_replace( '/demo/server/server.php', 'tests/phpunit_coverage.php', $this->args['URI'] ); |
102 | 102 | |
103 | - if ($this->args['DEBUG'] == 1) |
|
104 | - ob_start(); |
|
103 | + if ($this->args['DEBUG'] == 1) { |
|
104 | + ob_start(); |
|
105 | + } |
|
105 | 106 | } |
106 | 107 | |
107 | 108 | protected function tear_down() |
108 | 109 | { |
109 | - if ($this->args['DEBUG'] != 1) |
|
110 | - return; |
|
110 | + if ($this->args['DEBUG'] != 1) { |
|
111 | + return; |
|
112 | + } |
|
111 | 113 | $out = ob_get_clean(); |
112 | 114 | $status = $this->getStatus(); |
113 | 115 | if ($status == PHPUnit_Runner_BaseTestRunner::STATUS_ERROR |