public function testRemoveAuthorizationHeaderOnRedirect()
{
$mock = new MockHandler([new Response(302, ['Location' => 'http://test.com']), function (RequestInterface $request) {
$this->assertFalse($request->hasHeader('Authorization'));
return new Response(200);
}]);
$handler = HandlerStack::create($mock);
$client = new Client(['handler' => $handler]);
$client->get('http://example.com?a=b', ['auth' => ['testuser', 'testpass']]);
}