@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include_once __DIR__ . '/parse_args.php'; |
|
3 | +include_once __DIR__.'/parse_args.php'; |
|
4 | 4 | |
5 | -include_once __DIR__ . '/PolyfillTestCase.php'; |
|
5 | +include_once __DIR__.'/PolyfillTestCase.php'; |
|
6 | 6 | |
7 | 7 | abstract class PhpXmlRpc_LocalFileTestCase extends PhpXmlRpc_PolyfillTestCase |
8 | 8 | { |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | */ |
24 | 24 | public function _run($result = NULL) |
25 | 25 | { |
26 | - $this->testId = get_class($this) . '__' . $this->getName(); |
|
26 | + $this->testId = get_class($this).'__'.$this->getName(); |
|
27 | 27 | |
28 | 28 | if ($result === NULL) { |
29 | 29 | $result = $this->createResult(); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | protected function request($file, $method = 'GET', $payload = '', $emptyPageOk = false) |
53 | 53 | { |
54 | - $url = $this->baseUrl . $file; |
|
54 | + $url = $this->baseUrl.$file; |
|
55 | 55 | |
56 | 56 | $ch = curl_init($url); |
57 | 57 | curl_setopt_array($ch, array( |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | { |
70 | 70 | curl_setopt($ch, CURLOPT_COOKIE, 'PHPUNIT_SELENIUM_TEST_ID='.$this->testId); |
71 | 71 | } |
72 | - if ($this->args['DEBUG'] > 0) { |
|
72 | + if ($this->args['DEBUG']>0) { |
|
73 | 73 | curl_setopt($ch, CURLOPT_VERBOSE, 1); |
74 | 74 | } |
75 | 75 | $page = curl_exec($ch); |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include_once __DIR__ . '/LocalFileTestCase.php'; |
|
3 | +include_once __DIR__.'/LocalFileTestCase.php'; |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Tests for php files in the 'extras' directory |
@@ -12,9 +12,9 @@ discard block |
||
12 | 12 | { |
13 | 13 | $this->args = argParser::getArgs(); |
14 | 14 | |
15 | - $this->baseUrl = $this->args['HTTPSERVER'] . str_replace( '/demo/server/server.php', '/tests/', $this->args['HTTPURI'] ); |
|
15 | + $this->baseUrl = $this->args['HTTPSERVER'].str_replace('/demo/server/server.php', '/tests/', $this->args['HTTPURI']); |
|
16 | 16 | |
17 | - $this->coverageScriptUrl = 'http://' . $this->args['HTTPSERVER'] . '/' . str_replace( '/demo/server/server.php', 'tests/phpunit_coverage.php', $this->args['HTTPURI'] ); |
|
17 | + $this->coverageScriptUrl = 'http://'.$this->args['HTTPSERVER'].'/'.str_replace('/demo/server/server.php', 'tests/phpunit_coverage.php', $this->args['HTTPURI']); |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | /** |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | } |
15 | 15 | |
16 | 16 | // Use the custom class autoloader. These two lines not needed when the phpxmlrpc library is installed using Composer |
17 | -include_once __DIR__ . '/../../src/Autoloader.php'; |
|
17 | +include_once __DIR__.'/../../src/Autoloader.php'; |
|
18 | 18 | PhpXmlRpc\Autoloader::register(); |
19 | 19 | |
20 | 20 | // Out-of-band information: let the client manipulate the server operations. |
@@ -26,5 +26,5 @@ discard block |
||
26 | 26 | chmod($GLOBALS['PHPUNIT_COVERAGE_DATA_DIRECTORY'], 0777); |
27 | 27 | } |
28 | 28 | |
29 | - include_once __DIR__ . "/../../vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/SeleniumCommon/prepend.php"; |
|
29 | + include_once __DIR__."/../../vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/SeleniumCommon/prepend.php"; |
|
30 | 30 | } |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | error_reporting(E_ALL); |
15 | 15 | |
16 | 16 | // Use the custom class autoloader. These two lines not needed when the phpxmlrpc library is installed using Composer |
17 | -include_once __DIR__ . '/../../src/Autoloader.php'; |
|
17 | +include_once __DIR__.'/../../src/Autoloader.php'; |
|
18 | 18 | PhpXmlRpc\Autoloader::register(); |
19 | 19 | |
20 | 20 | // Let unit tests run against localhost, 'plain' demos against a known public server |
@@ -33,5 +33,5 @@ discard block |
||
33 | 33 | chmod($GLOBALS['PHPUNIT_COVERAGE_DATA_DIRECTORY'], 0777); |
34 | 34 | } |
35 | 35 | |
36 | - include_once __DIR__ . "/../../vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/SeleniumCommon/prepend.php"; |
|
36 | + include_once __DIR__."/../../vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/SeleniumCommon/prepend.php"; |
|
37 | 37 | } |