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