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