Skip to content

Commit 9dfde7c

Browse files
committed
fix test and README
1 parent efdcdbf commit 9dfde7c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ $client = new Client(
239239
```
240240

241241

242-
The Client constructor also receives an optional "httpOptions" array, which can be used to add custom [Guzzle HTTP Client request options](https://guzzle.readthedocs.io/en/latest/request-options.html).
242+
The Client constructor also receives an optional "httpOptions" array, which **overrides** the "authorizationHeaders" and can be used to add custom [Guzzle HTTP Client request options](https://guzzle.readthedocs.io/en/latest/request-options.html).
243243

244244
Example:
245245

tests/ClientTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,12 @@ public function testConstructClient()
8989
$secondRequest = $container[2]['request'];
9090
$this->assertEquals('{"query":"query_string","variables":{"name":"val"}}', $secondRequest->getBody()->getContents());
9191

92-
9392
/** @var Request $fourthRequest */
9493
$fourthRequest = $container[3]['request'];
95-
$this->assertNotNull($fourthRequest->getHeader('Authorization'));
94+
$this->assertNotEmpty($fourthRequest->getHeader('Authorization'));
9695
$this->assertNotEmpty($fourthRequest->getHeader('User-Agent'));
9796
$this->assertEquals(['Basic zyx'], $fourthRequest->getHeader('Authorization'));
9897
$this->assertEquals(['test'], $fourthRequest->getHeader('User-Agent'));
99-
10098
}
10199

102100
/**

0 commit comments

Comments
 (0)