@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include_once __DIR__ . '/ServerAwareTestCase.php'; |
|
3 | +include_once __DIR__.'/ServerAwareTestCase.php'; |
|
4 | 4 | |
5 | 5 | abstract class PhpXmlRpc_WebTestCase extends PhpXmlRpc_ServerAwareTestCase |
6 | 6 | { |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | */ |
16 | 16 | protected function request($path, $method = 'GET', $payload = '', $emptyPageOk = false) |
17 | 17 | { |
18 | - $url = $this->baseUrl . $path; |
|
18 | + $url = $this->baseUrl.$path; |
|
19 | 19 | |
20 | 20 | $ch = curl_init($url); |
21 | 21 | curl_setopt_array($ch, array( |
@@ -29,21 +29,21 @@ discard block |
||
29 | 29 | CURLOPT_POSTFIELDS => $payload |
30 | 30 | )); |
31 | 31 | } |
32 | - $cookie = 'PHPUNIT_RANDOM_TEST_ID=' . static::$randId; |
|
32 | + $cookie = 'PHPUNIT_RANDOM_TEST_ID='.static::$randId; |
|
33 | 33 | if ($this->collectCodeCoverageInformation) |
34 | 34 | { |
35 | - $cookie .= '; PHPUNIT_SELENIUM_TEST_ID=' . $this->testId; |
|
35 | + $cookie .= '; PHPUNIT_SELENIUM_TEST_ID='.$this->testId; |
|
36 | 36 | } |
37 | 37 | curl_setopt($ch, CURLOPT_COOKIE, $cookie); |
38 | 38 | |
39 | - if ($this->args['DEBUG'] > 0) { |
|
39 | + if ($this->args['DEBUG']>0) { |
|
40 | 40 | curl_setopt($ch, CURLOPT_VERBOSE, 1); |
41 | 41 | } |
42 | 42 | $page = curl_exec($ch); |
43 | 43 | $info = curl_getinfo($ch); |
44 | 44 | curl_close($ch); |
45 | 45 | |
46 | - $this->assertNotFalse($page, 'Curl request should not fail. Url: ' . @$info['url'] . ', Http code: ' . @$info['http_code']); |
|
46 | + $this->assertNotFalse($page, 'Curl request should not fail. Url: '.@$info['url'].', Http code: '.@$info['http_code']); |
|
47 | 47 | if (!$emptyPageOk) { |
48 | 48 | $this->assertNotEquals('', $page, 'Retrieved web page should not be empty'); |
49 | 49 | } |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | */ |
63 | 63 | protected function newClient($path) |
64 | 64 | { |
65 | - $client = new \PhpXmlRpc\Client($this->baseUrl . $path); |
|
65 | + $client = new \PhpXmlRpc\Client($this->baseUrl.$path); |
|
66 | 66 | $client->setCookie('PHPUNIT_RANDOM_TEST_ID', static::$randId); |
67 | 67 | if ($this->collectCodeCoverageInformation) { |
68 | 68 | $client->setCookie('PHPUNIT_SELENIUM_TEST_ID', $this->testId); |