44
55namespace SpotifyWebAPI ;
66
7- use \ phpmock \phpunit \PHPMock ;
8- use \ PHPUnit \Framework \Attributes \RunTestsInSeparateProcesses ;
9- use \ PHPUnit \Framework \TestCase ;
7+ use phpmock \phpunit \PHPMock ;
8+ use PHPUnit \Framework \Attributes \RunTestsInSeparateProcesses ;
9+ use PHPUnit \Framework \TestCase ;
1010
1111#[RunTestsInSeparateProcesses]
1212class RequestTest extends TestCase
@@ -75,7 +75,7 @@ public function testAccountMalformed()
7575 $ this ->setupFunctionMock ('curl_getinfo ' )->willReturn (400 );
7676
7777 $ parameters = [
78- 'grant_type ' => 'client_credentials '
78+ 'grant_type ' => 'client_credentials ' ,
7979 ];
8080
8181 $ headers = [
@@ -176,7 +176,7 @@ public function testSendDelete()
176176 function (\CurlHandle $ ch , array $ options ) {
177177 $ this ->assertEquals ('DELETE ' , $ options [CURLOPT_CUSTOMREQUEST ]);
178178 $ this ->assertEquals ('foo=bar ' , $ options [CURLOPT_POSTFIELDS ]);
179- }
179+ },
180180 );
181181
182182 $ parameters = [
@@ -194,7 +194,7 @@ public function testSendPost()
194194 function (\CurlHandle $ ch , array $ options ) {
195195 $ this ->assertEquals (true , $ options [CURLOPT_POST ]);
196196 $ this ->assertEquals ('foo=bar ' , $ options [CURLOPT_POSTFIELDS ]);
197- }
197+ },
198198 );
199199
200200 $ parameters = [
@@ -212,7 +212,7 @@ public function testSendPut()
212212 function (\CurlHandle $ ch , array $ options ) {
213213 $ this ->assertEquals ('PUT ' , $ options [CURLOPT_CUSTOMREQUEST ]);
214214 $ this ->assertEquals ('foo=bar ' , $ options [CURLOPT_POSTFIELDS ]);
215- }
215+ },
216216 );
217217
218218 $ parameters = [
@@ -230,7 +230,7 @@ public function testSendGetParameters()
230230 function (\CurlHandle $ ch , array $ options ) {
231231 $ this ->assertEquals ('GET ' , $ options [CURLOPT_CUSTOMREQUEST ]);
232232 $ this ->assertEquals ('https://www.example.com/?foo=bar ' , $ options [CURLOPT_URL ]);
233- }
233+ },
234234 );
235235
236236 $ parameters = [
@@ -265,7 +265,7 @@ public function testSendStatus()
265265 public function testSendTransportError ()
266266 {
267267 $ this ->expectExceptionObject (
268- new SpotifyWebAPIException ('cURL transport error: 6 Could not resolve host: non-existent ' )
268+ new SpotifyWebAPIException ('cURL transport error: 6 Could not resolve host: non-existent ' ),
269269 );
270270
271271 $ request = new Request ();
@@ -303,7 +303,7 @@ public function testSendUnknownError()
303303 $ this ->setupFunctionMock ('curl_getinfo ' )->willReturn (400 );
304304
305305 $ this ->expectExceptionObject (
306- new SpotifyWebAPIException ('An unknown error occurred. ' , 400 )
306+ new SpotifyWebAPIException ('An unknown error occurred. ' , 400 ),
307307 );
308308
309309 $ request = new Request ();
@@ -316,7 +316,7 @@ public function testSendUnknownErrorBodyFallback()
316316 $ this ->setupFunctionMock ('curl_getinfo ' )->willReturn (400 );
317317
318318 $ this ->expectExceptionObject (
319- new SpotifyWebAPIException ('Foobar error ' , 400 )
319+ new SpotifyWebAPIException ('Foobar error ' , 400 ),
320320 );
321321
322322 $ request = new Request ();
0 commit comments