public function FunctionsTest::testCanModifyRequestWithCaseInsensitiveHeader in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/tests/FunctionsTest.php \GuzzleHttp\Tests\Psr7\FunctionsTest::testCanModifyRequestWithCaseInsensitiveHeader()
File
- vendor/
guzzlehttp/ psr7/ tests/ FunctionsTest.php, line 549
Class
Namespace
GuzzleHttp\Tests\Psr7Code
public function testCanModifyRequestWithCaseInsensitiveHeader() {
$r1 = new Psr7\Request('GET', 'http://foo.com', [
'User-Agent' => 'foo',
]);
$r2 = Psr7\modify_request($r1, [
'set_headers' => [
'User-agent' => 'bar',
],
]);
$this
->assertEquals('bar', $r2
->getHeaderLine('User-Agent'));
$this
->assertEquals('bar', $r2
->getHeaderLine('User-agent'));
}