We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ac753d commit 2db7ef7Copy full SHA for 2db7ef7
tests/Twilio/Unit/Http/GuzzleClientTest.php
@@ -56,6 +56,20 @@ public function testPostMethod(): void {
56
$this->assertFalse($options['allow_redirects']);
57
}
58
59
+ public function testBasicAuth(): void
60
+ {
61
+ $this->mockHandler->append(new Response());
62
+ $response = $this->client->request('POST',
63
+ 'https://www.whatever.com',
64
+ ['myquerykey' => 'myqueryvalue'],
65
+ ['myparamkey' => 'myparamvalue'],
66
+ [],
67
+ "user",
68
+ "password"
69
+ );
70
+ $this->assertSame([], $response->getHeaders());
71
+ }
72
+
73
public function testAuthStrategy(): void
74
{
75
$this->mockHandler->append(new Response());
0 commit comments