public function UriTest::testAddsSlashForRelativeUriStringWithHost in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/tests/UriTest.php \GuzzleHttp\Tests\Psr7\UriTest::testAddsSlashForRelativeUriStringWithHost()
File
- vendor/
guzzlehttp/ psr7/ tests/ UriTest.php, line 241
Class
- UriTest
- @covers GuzzleHttp\Psr7\Uri
Namespace
GuzzleHttp\Tests\Psr7Code
public function testAddsSlashForRelativeUriStringWithHost() {
$uri = (new Uri())
->withPath('foo')
->withHost('bar.com');
$this
->assertEquals('foo', $uri
->getPath());
$this
->assertEquals('bar.com/foo', (string) $uri);
}