You are here

public function FunctionsTest::testReturnsUriAsIsWhenNoChanges in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/psr7/tests/FunctionsTest.php \GuzzleHttp\Tests\Psr7\FunctionsTest::testReturnsUriAsIsWhenNoChanges()

File

vendor/guzzlehttp/psr7/tests/FunctionsTest.php, line 563

Class

FunctionsTest

Namespace

GuzzleHttp\Tests\Psr7

Code

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'));
}