diff options
| author | ArnaudVOTA <arnaud.vota@gmail.com> | 2016-01-27 11:04:02 +0100 |
|---|---|---|
| committer | ArnaudVOTA <arnaud.vota@gmail.com> | 2016-01-27 11:04:02 +0100 |
| commit | b10e4679e0f0316bfe24098a84db040dcfc8d38f (patch) | |
| tree | 3bdc7cb4b721a870eb9bab9696326071b1388ce6 /server/vendor/guzzlehttp/psr7/tests/FunctionsTest.php | |
| parent | 5466ce78f00038e742ef2a108c755f57ede451f5 (diff) | |
| parent | 81d5c2a6464771c9a180d0214706a2f65f0b1d18 (diff) | |
Merge remote-tracking branch 'refs/remotes/origin/master' into vota_overlay
Diffstat (limited to 'server/vendor/guzzlehttp/psr7/tests/FunctionsTest.php')
| -rw-r--r-- | server/vendor/guzzlehttp/psr7/tests/FunctionsTest.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/vendor/guzzlehttp/psr7/tests/FunctionsTest.php b/server/vendor/guzzlehttp/psr7/tests/FunctionsTest.php index de5b5cb..65cb954 100644 --- a/server/vendor/guzzlehttp/psr7/tests/FunctionsTest.php +++ b/server/vendor/guzzlehttp/psr7/tests/FunctionsTest.php @@ -546,6 +546,16 @@ class FunctionsTest extends \PHPUnit_Framework_TestCase $this->assertEquals('www.foo.com', (string) $r2->getHeaderLine('host')); } + public function testCanModifyRequestWithUriAndPort() + { + $r1 = new Psr7\Request('GET', 'http://foo.com:8000'); + $r2 = Psr7\modify_request($r1, [ + 'uri' => new Psr7\Uri('http://www.foo.com:8000') + ]); + $this->assertEquals('http://www.foo.com:8000', (string) $r2->getUri()); + $this->assertEquals('www.foo.com:8000', (string) $r2->getHeaderLine('host')); + } + public function testCanModifyRequestWithCaseInsensitiveHeader() { $r1 = new Psr7\Request('GET', 'http://foo.com', ['User-Agent' => 'foo']); |
