public function RequestTest::testRequestTargetDefaultsToSlash in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/tests/RequestTest.php \GuzzleHttp\Tests\Psr7\RequestTest::testRequestTargetDefaultsToSlash()
File
- vendor/
guzzlehttp/ psr7/ tests/ RequestTest.php, line 86
Class
- RequestTest
- @covers GuzzleHttp\Psr7\Request
Namespace
GuzzleHttp\Tests\Psr7Code
public function testRequestTargetDefaultsToSlash() {
$r1 = new Request('GET', '');
$this
->assertEquals('/', $r1
->getRequestTarget());
$r2 = new Request('GET', '*');
$this
->assertEquals('*', $r2
->getRequestTarget());
$r3 = new Request('GET', 'http://foo.com/bar baz/');
$this
->assertEquals('/bar%20baz/', $r3
->getRequestTarget());
}