1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-24 10:03:27 +01:00

Changed double quotes to single quotes

This commit is contained in:
Aleksey Kozakov 2016-01-25 16:23:01 +02:00
parent 2138667fe7
commit 2cffbeb826
2 changed files with 5 additions and 5 deletions

View File

@ -93,7 +93,7 @@ class Client implements ClientInterface
$options = $this->prepareDefaults($options); $options = $this->prepareDefaults($options);
return $this->transfer( return $this->transfer(
$request->withUri($this->buildUri($request->getUri(), $options), $request->hasHeader("Host")), $request->withUri($this->buildUri($request->getUri(), $options), $request->hasHeader('Host')),
$options $options
); );
} }

View File

@ -597,22 +597,22 @@ class ClientTest extends \PHPUnit_Framework_TestCase
{ {
$mockHandler = new MockHandler([new Response(200)]); $mockHandler = new MockHandler([new Response(200)]);
$client = new Client(['base_uri' => '127.0.0.1:8585', 'handler' => $mockHandler]); $client = new Client(['base_uri' => '127.0.0.1:8585', 'handler' => $mockHandler]);
$request = new Request('GET', '/test', ["Host"=>"foo.com"]); $request = new Request('GET', '/test', ['Host'=>'foo.com']);
$client->send($request); $client->send($request);
$this->assertEquals("foo.com", $mockHandler->getLastRequest()->getHeader("Host")[0]); $this->assertEquals('foo.com', $mockHandler->getLastRequest()->getHeader('Host')[0]);
} }
public function testSendSendsWithDomainAndHostHeaderInRequestTheHostShouldBePreserved() public function testSendSendsWithDomainAndHostHeaderInRequestTheHostShouldBePreserved()
{ {
$mockHandler = new MockHandler([new Response(200)]); $mockHandler = new MockHandler([new Response(200)]);
$client = new Client(['base_uri' => 'http://foo2.com', 'handler' => $mockHandler]); $client = new Client(['base_uri' => 'http://foo2.com', 'handler' => $mockHandler]);
$request = new Request('GET', '/test', ["Host"=>"foo.com"]); $request = new Request('GET', '/test', ['Host'=>'foo.com']);
$client->send($request); $client->send($request);
$this->assertEquals("foo.com", $mockHandler->getLastRequest()->getHeader('Host')[0]); $this->assertEquals('foo.com', $mockHandler->getLastRequest()->getHeader('Host')[0]);
} }
} }