@@ -327,7 +327,7 @@ public function testDebugDisabled()
327
327
*/
328
328
public function testRequestHeadersMethod ()
329
329
{
330
- $ headers = $ this ->callPrivateMethod ( $ this -> api , ' request_headers ' , [] );
330
+ $ headers = $ this ->api -> get_request_headers ( );
331
331
$ this ->assertArrayHasKey ('Accept ' , $ headers );
332
332
$ this ->assertArrayHasKey ('Content-Type ' , $ headers );
333
333
$ this ->assertArrayHasKey ('User-Agent ' , $ headers );
@@ -348,9 +348,9 @@ public function testRequestHeadersMethod()
348
348
*/
349
349
public function testRequestHeadersMethodWithType ()
350
350
{
351
- $ headers = $ this ->callPrivateMethod ( $ this -> api , ' request_headers ' , [
352
- ' type ' => 'text/html ' ,
353
- ] );
351
+ $ headers = $ this ->api -> get_request_headers (
352
+ type: 'text/html '
353
+ );
354
354
$ this ->assertArrayHasKey ('Accept ' , $ headers );
355
355
$ this ->assertArrayHasKey ('Content-Type ' , $ headers );
356
356
$ this ->assertArrayHasKey ('User-Agent ' , $ headers );
@@ -371,9 +371,9 @@ public function testRequestHeadersMethodWithType()
371
371
*/
372
372
public function testRequestHeadersMethodWithAuthDisabled ()
373
373
{
374
- $ headers = $ this ->callPrivateMethod ( $ this -> api , ' request_headers ' , [
375
- ' auth ' => false ,
376
- ] );
374
+ $ headers = $ this ->api -> get_request_headers (
375
+ auth: false
376
+ );
377
377
$ this ->assertArrayHasKey ('Accept ' , $ headers );
378
378
$ this ->assertArrayHasKey ('Content-Type ' , $ headers );
379
379
$ this ->assertArrayHasKey ('User-Agent ' , $ headers );
@@ -393,10 +393,10 @@ public function testRequestHeadersMethodWithAuthDisabled()
393
393
*/
394
394
public function testRequestHeadersMethodWithTypeAndAuthDisabled ()
395
395
{
396
- $ headers = $ this ->callPrivateMethod ( $ this -> api , ' request_headers ' , [
397
- ' type ' => 'text/html ' ,
398
- ' auth ' => false ,
399
- ] );
396
+ $ headers = $ this ->api -> get_request_headers (
397
+ type: 'text/html ' ,
398
+ auth: false
399
+ );
400
400
$ this ->assertArrayHasKey ('Accept ' , $ headers );
401
401
$ this ->assertArrayHasKey ('Content-Type ' , $ headers );
402
402
$ this ->assertArrayHasKey ('User-Agent ' , $ headers );
0 commit comments