You are here

public function RequestTest::testRequestUriMayBeUri in Zircon Profile 8

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

File

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

Class

RequestTest
@covers GuzzleHttp\Psr7\Request

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testRequestUriMayBeUri() {
  $uri = new Uri('/');
  $r = new Request('GET', $uri);
  $this
    ->assertSame($uri, $r
    ->getUri());
}