You are here

public function UriTest::testAllowsForRelativeUri in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/guzzlehttp/psr7/tests/UriTest.php \GuzzleHttp\Tests\Psr7\UriTest::testAllowsForRelativeUri()

File

vendor/guzzlehttp/psr7/tests/UriTest.php, line 234

Class

UriTest
@covers GuzzleHttp\Psr7\Uri

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testAllowsForRelativeUri() {
  $uri = (new Uri())
    ->withPath('foo');
  $this
    ->assertEquals('foo', $uri
    ->getPath());
  $this
    ->assertEquals('foo', (string) $uri);
}