diff --git a/Test/HttpClientTestCase.php b/Test/HttpClientTestCase.php index 6a042d5..8cffeac 100644 --- a/Test/HttpClientTestCase.php +++ b/Test/HttpClientTestCase.php @@ -331,11 +331,16 @@ public function test304() $this->assertSame('', $response->getContent(false)); } - public function testRedirects() + /** + * @testWith [[]] + * [["Content-Length: 7"]] + */ + public function testRedirects(array $headers = []) { $client = $this->getHttpClient(__FUNCTION__); $response = $client->request('POST', 'http://localhost:8057/301', [ 'auth_basic' => 'foo:bar', + 'headers' => $headers, 'body' => function () { yield 'foo=bar'; },