GuzzleHttp\Tests\Psr7\UriTest::testAllowsForRelativeUri PHP Method

testAllowsForRelativeUri() public method

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