@@ -31,7 +31,7 @@ |
||
31 | 31 | 'status' => 200, |
32 | 32 | 'headers' => [ |
33 | 33 | 'Server' => 'Apache/2.4.38 (Debian)', |
34 | - 'X-Info' => $method . ' ' . $uri |
|
34 | + 'X-Info' => $method.' '.$uri |
|
35 | 35 | ], |
36 | 36 | 'body' => '{"key":"value"}', |
37 | 37 | ]; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | $this->assertSame(200, $response->getStatusCode()); |
26 | 26 | $this->assertSame('{"key":"value"}', $response->getBody()); |
27 | 27 | $this->assertSame( |
28 | - ['Server' => 'Apache/2.4.38 (Debian)', 'X-Info' => 'GET ' . $this->uri], |
|
28 | + ['Server' => 'Apache/2.4.38 (Debian)', 'X-Info' => 'GET '.$this->uri], |
|
29 | 29 | $response->getHeaders() |
30 | 30 | ); |
31 | 31 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | $this->assertSame(200, $response->getStatusCode()); |
69 | 69 | $this->assertSame(['key' => 'value'], $response->parseJson()); |
70 | 70 | $this->assertSame( |
71 | - ['Server' => 'Apache/2.4.38 (Debian)', 'X-Info' => 'GET ' . $this->uri], |
|
71 | + ['Server' => 'Apache/2.4.38 (Debian)', 'X-Info' => 'GET '.$this->uri], |
|
72 | 72 | $response->getHeaders() |
73 | 73 | ); |
74 | 74 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $client = new SomeClient(); |
96 | 96 | |
97 | 97 | $client->withHandler( |
98 | - function () { |
|
98 | + function() { |
|
99 | 99 | return [ |
100 | 100 | 'status' => 500, |
101 | 101 | 'headers' => ['Server' => 'Apache/2.4.38 (Ubuntu)'], |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | $liveResponse = $client->call('GET', $this->uri); |
122 | 122 | |
123 | 123 | $client->withHandler( |
124 | - function () { |
|
124 | + function() { |
|
125 | 125 | return [ |
126 | 126 | 'status' => 500, |
127 | 127 | 'headers' => ['Server' => 'Apache/2.4 (Ubuntu)'], |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | $this->assertSame(200, $liveResponse->getStatusCode()); |
136 | 136 | $this->assertSame(['key' => 'value'], $liveResponse->parseJson()); |
137 | 137 | $this->assertSame( |
138 | - ['Server' => 'Apache/2.4.38 (Debian)', 'X-Info' => 'GET ' . $this->uri], |
|
138 | + ['Server' => 'Apache/2.4.38 (Debian)', 'X-Info' => 'GET '.$this->uri], |
|
139 | 139 | $liveResponse->getHeaders() |
140 | 140 | ); |
141 | 141 | $this->assertSame(500, $mockedResponse->getStatusCode()); |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | $client = new SomeClient(); |
156 | 156 | |
157 | 157 | $client->withHandler( |
158 | - function () { |
|
158 | + function() { |
|
159 | 159 | throw new HttpClientException('Bad request exception'); |
160 | 160 | } |
161 | 161 | ); |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | $client = new SomeClient(); |
177 | 177 | |
178 | 178 | $client->withHandler( |
179 | - function () { |
|
179 | + function() { |
|
180 | 180 | throw new HttpConnectionException('Service is down'); |
181 | 181 | } |
182 | 182 | ); |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | $client = new SomeClient(); |
192 | 192 | |
193 | 193 | $client->withHandler( |
194 | - function () { |
|
194 | + function() { |
|
195 | 195 | return 'HTTP 500 - Server Error'; |
196 | 196 | } |
197 | 197 | ); |