public function ResponseTest::testCreatesResponseWithAddedHeaderArray in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/psr7/tests/ResponseTest.php \GuzzleHttp\Tests\Psr7\ResponseTest::testCreatesResponseWithAddedHeaderArray()
File
- vendor/
guzzlehttp/ psr7/ tests/ ResponseTest.php, line 52
Class
- ResponseTest
- @covers GuzzleHttp\Psr7\MessageTrait @covers GuzzleHttp\Psr7\Response
Namespace
GuzzleHttp\Tests\Psr7Code
public function testCreatesResponseWithAddedHeaderArray() {
$r = new Response();
$r2 = $r
->withAddedHeader('foo', [
'baz',
'bar',
]);
$this
->assertFalse($r
->hasHeader('foo'));
$this
->assertEquals('baz, bar', $r2
->getHeaderLine('foo'));
}