Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 11489fe

Browse files
author
Alexey Grigorchenko
committed
add testcase
1 parent 4a7bb6f commit 11489fe

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/ServerRequestFactoryTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,4 +607,13 @@ public function testMarshalRequestUriPrefersRequestUriServerParamWhenXOriginalUr
607607
$uri = marshalUriFromSapi($server, $headers);
608608
$this->assertSame('/requested/path', $uri->getPath());
609609
}
610+
611+
public function testGetHeader()
612+
{
613+
$headers = [
614+
'Host' => 'example.com'
615+
];
616+
617+
$this->assertSame('example.com', ServerRequestFactory::getHeader('Host', $headers));
618+
}
610619
}

0 commit comments

Comments
 (0)