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 5236c15 commit b502408Copy full SHA for b502408
HttpClient/Test/HttpClientTestCase.php
@@ -332,11 +332,16 @@ public function test304()
332
$this->assertSame('', $response->getContent(false));
333
}
334
335
- public function testRedirects()
+ /**
336
+ * @testWith [[]]
337
+ * [["Content-Length: 7"]]
338
+ */
339
+ public function testRedirects(array $headers = [])
340
{
341
$client = $this->getHttpClient(__FUNCTION__);
342
$response = $client->request('POST', 'http://localhost:8057/301', [
343
'auth_basic' => 'foo:bar',
344
+ 'headers' => $headers,
345
'body' => function () {
346
yield 'foo=bar';
347
},
0 commit comments