@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | $this->assertSame(200, $response->getStatusCode()); |
25 | 25 | $this->assertSame('{"key":"value"}', $response->getBody()); |
26 | 26 | $this->assertSame( |
27 | - ['Server' => 'Apache/2.4.38 (Debian)', 'X-Info' => 'GET ' . $this->uri], |
|
27 | + ['Server' => 'Apache/2.4.38 (Debian)', 'X-Info' => 'GET '.$this->uri], |
|
28 | 28 | $response->getHeaders() |
29 | 29 | ); |
30 | 30 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $this->assertSame(200, $response->getStatusCode()); |
68 | 68 | $this->assertSame(['key' => 'value'], $response->parseJson()); |
69 | 69 | $this->assertSame( |
70 | - ['Server' => 'Apache/2.4.38 (Debian)', 'X-Info' => 'GET ' . $this->uri], |
|
70 | + ['Server' => 'Apache/2.4.38 (Debian)', 'X-Info' => 'GET '.$this->uri], |
|
71 | 71 | $response->getHeaders() |
72 | 72 | ); |
73 | 73 | } |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | $client = new SomeClient(); |
95 | 95 | |
96 | 96 | $client->withHandler( |
97 | - function () { |
|
97 | + function() { |
|
98 | 98 | return [ |
99 | 99 | 'status' => 500, |
100 | 100 | 'headers' => ['Server' => 'Apache/2.4.38 (Ubuntu)'], |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $liveResponse = $client->call('GET', $this->uri); |
121 | 121 | |
122 | 122 | $client->withHandler( |
123 | - function () { |
|
123 | + function() { |
|
124 | 124 | return [ |
125 | 125 | 'status' => 500, |
126 | 126 | 'headers' => ['Server' => 'Apache/2.4 (Ubuntu)'], |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | $this->assertSame(200, $liveResponse->getStatusCode()); |
135 | 135 | $this->assertSame(['key' => 'value'], $liveResponse->parseJson()); |
136 | 136 | $this->assertSame( |
137 | - ['Server' => 'Apache/2.4.38 (Debian)', 'X-Info' => 'GET ' . $this->uri], |
|
137 | + ['Server' => 'Apache/2.4.38 (Debian)', 'X-Info' => 'GET '.$this->uri], |
|
138 | 138 | $liveResponse->getHeaders() |
139 | 139 | ); |
140 | 140 | $this->assertSame(500, $mockedResponse->getStatusCode()); |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | $client = new SomeClient(); |
155 | 155 | |
156 | 156 | $client->withHandler( |
157 | - function () { |
|
157 | + function() { |
|
158 | 158 | throw new HttpClientException('Bad request exception'); |
159 | 159 | } |
160 | 160 | ); |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | $client = new SomeClient(); |
170 | 170 | |
171 | 171 | $client->withHandler( |
172 | - function () { |
|
172 | + function() { |
|
173 | 173 | return 'HTTP 500 - Server Error'; |
174 | 174 | } |
175 | 175 | ); |
@@ -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 | ]; |