You are here

public function RequestTest::testHostIsAddedFirst in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/guzzlehttp/psr7/tests/RequestTest.php \GuzzleHttp\Tests\Psr7\RequestTest::testHostIsAddedFirst()

File

vendor/guzzlehttp/psr7/tests/RequestTest.php, line 102

Class

RequestTest
@covers GuzzleHttp\Psr7\Request

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testHostIsAddedFirst() {
  $r = new Request('GET', 'http://foo.com/baz?bar=bam', [
    'Foo' => 'Bar',
  ]);
  $this
    ->assertEquals([
    'Host' => [
      'foo.com',
    ],
    'Foo' => [
      'Bar',
    ],
  ], $r
    ->getHeaders());
}