@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | |
69 | 69 | public function testApiGet() |
70 | 70 | { |
71 | - $client = $this->getClientWithResponse(200, [], [], function (GuzzleHttpClient $guzzleClient) { |
|
71 | + $client = $this->getClientWithResponse(200, [], [], function(GuzzleHttpClient $guzzleClient) { |
|
72 | 72 | /** @var GuzzleHttpClient|\PHPUnit_Framework_MockObject_MockObject $guzzleClient */ |
73 | 73 | $guzzleClient->expects($this->once()) |
74 | 74 | ->method('createRequest') |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | */ |
88 | 88 | public function testApiGetWith301Response() |
89 | 89 | { |
90 | - $client = $this->getClientWithResponse(301, [], [], function (GuzzleHttpClient $guzzleClient) { |
|
90 | + $client = $this->getClientWithResponse(301, [], [], function(GuzzleHttpClient $guzzleClient) { |
|
91 | 91 | /** @var GuzzleHttpClient|\PHPUnit_Framework_MockObject_MockObject $guzzleClient */ |
92 | 92 | $guzzleClient->expects($this->once()) |
93 | 93 | ->method('createRequest') |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | */ |
107 | 107 | public function testApiGetWith404Response() |
108 | 108 | { |
109 | - $client = $this->getClientWithResponse(404, [], [], function (GuzzleHttpClient $guzzleClient) { |
|
109 | + $client = $this->getClientWithResponse(404, [], [], function(GuzzleHttpClient $guzzleClient) { |
|
110 | 110 | /** @var GuzzleHttpClient|\PHPUnit_Framework_MockObject_MockObject $guzzleClient */ |
111 | 111 | $guzzleClient->expects($this->once()) |
112 | 112 | ->method('createRequest') |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | */ |
126 | 126 | public function testApiGetWith403Response() |
127 | 127 | { |
128 | - $client = $this->getClientWithResponse(403, [], [], function (GuzzleHttpClient $guzzleClient) { |
|
128 | + $client = $this->getClientWithResponse(403, [], [], function(GuzzleHttpClient $guzzleClient) { |
|
129 | 129 | /** @var GuzzleHttpClient|\PHPUnit_Framework_MockObject_MockObject $guzzleClient */ |
130 | 130 | $guzzleClient->expects($this->once()) |
131 | 131 | ->method('createRequest') |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | |
142 | 142 | public function testGetServiceDocument() |
143 | 143 | { |
144 | - $client = $this->getClientWithResponse(200, [], [], function (GuzzleHttpClient $guzzleClient) { |
|
144 | + $client = $this->getClientWithResponse(200, [], [], function(GuzzleHttpClient $guzzleClient) { |
|
145 | 145 | /** @var GuzzleHttpClient|\PHPUnit_Framework_MockObject_MockObject $guzzleClient */ |
146 | 146 | $guzzleClient->expects($this->once()) |
147 | 147 | ->method('createRequest') |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | 200, |
163 | 163 | [], |
164 | 164 | [], |
165 | - function (GuzzleHttpClient $guzzleClient) { |
|
165 | + function(GuzzleHttpClient $guzzleClient) { |
|
166 | 166 | /** @var GuzzleHttpClient|\PHPUnit_Framework_MockObject_MockObject $guzzleClient */ |
167 | 167 | $guzzleClient->expects($this->once()) |
168 | 168 | ->method('createRequest') |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | 200, |
185 | 185 | [], |
186 | 186 | [], |
187 | - function (GuzzleHttpClient $guzzleClient) { |
|
187 | + function(GuzzleHttpClient $guzzleClient) { |
|
188 | 188 | /** @var GuzzleHttpClient|\PHPUnit_Framework_MockObject_MockObject $guzzleClient */ |
189 | 189 | $guzzleClient->expects($this->once()) |
190 | 190 | ->method('createRequest') |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | 200, |
207 | 207 | [], |
208 | 208 | [], |
209 | - function (GuzzleHttpClient $guzzleClient) { |
|
209 | + function(GuzzleHttpClient $guzzleClient) { |
|
210 | 210 | /** @var GuzzleHttpClient|\PHPUnit_Framework_MockObject_MockObject $guzzleClient */ |
211 | 211 | $guzzleClient->expects($this->once()) |
212 | 212 | ->method('createRequest') |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | 200, |
229 | 229 | [], |
230 | 230 | [], |
231 | - function (GuzzleHttpClient $guzzleClient) { |
|
231 | + function(GuzzleHttpClient $guzzleClient) { |
|
232 | 232 | /** @var GuzzleHttpClient|\PHPUnit_Framework_MockObject_MockObject $guzzleClient */ |
233 | 233 | $guzzleClient->expects($this->once()) |
234 | 234 | ->method('createRequest') |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | 200, |
269 | 269 | [], |
270 | 270 | [], |
271 | - function (GuzzleHttpClient $guzzleClient) { |
|
271 | + function(GuzzleHttpClient $guzzleClient) { |
|
272 | 272 | /** @var GuzzleHttpClient|\PHPUnit_Framework_MockObject_MockObject $guzzleClient */ |
273 | 273 | $guzzleClient->expects($this->once()) |
274 | 274 | ->method('createRequest') |
@@ -314,8 +314,8 @@ discard block |
||
314 | 314 | 200, |
315 | 315 | [], |
316 | 316 | [], |
317 | - function (GuzzleHttpClient $guzzleClient) { |
|
318 | - $url = 'http://api.snd.no/news/v2/publication/sa/searchContents/instance?contentId=100100' . |
|
317 | + function(GuzzleHttpClient $guzzleClient) { |
|
318 | + $url = 'http://api.snd.no/news/v2/publication/sa/searchContents/instance?contentId=100100'. |
|
319 | 319 | '&contentType=article'; |
320 | 320 | |
321 | 321 | /** @var GuzzleHttpClient|\PHPUnit_Framework_MockObject_MockObject $guzzleClient */ |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | 200, |
340 | 340 | [], |
341 | 341 | [], |
342 | - function (GuzzleHttpClient $guzzleClient) { |
|
342 | + function(GuzzleHttpClient $guzzleClient) { |
|
343 | 343 | /** @var GuzzleHttpClient|\PHPUnit_Framework_MockObject_MockObject $guzzleClient */ |
344 | 344 | $guzzleClient->expects($this->once()) |
345 | 345 | ->method('createRequest') |
@@ -22,7 +22,7 @@ |
||
22 | 22 | */ |
23 | 23 | public function __construct($apiKey, $apiSecret, $publicationId) |
24 | 24 | { |
25 | - parent::__construct($apiKey, $apiSecret, $publicationId, self::BASE_URL . '/news/v2'); |
|
25 | + parent::__construct($apiKey, $apiSecret, $publicationId, self::BASE_URL.'/news/v2'); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |