You are here

public function RequestTest::testSameInstanceWhenSameUri in Zircon Profile 8

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

File

vendor/guzzlehttp/psr7/tests/RequestTest.php, line 62

Class

RequestTest
@covers GuzzleHttp\Psr7\Request

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testSameInstanceWhenSameUri() {
  $r1 = new Request('GET', 'http://foo.com');
  $r2 = $r1
    ->withUri($r1
    ->getUri());
  $this
    ->assertSame($r1, $r2);
}