public function ApacheRequestTest::testUriMethods in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/ApacheRequestTest.php \Symfony\Component\HttpFoundation\Tests\ApacheRequestTest::testUriMethods()
@dataProvider provideServerVars
File
- vendor/
symfony/ http-foundation/ Tests/ ApacheRequestTest.php, line 21
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testUriMethods($server, $expectedRequestUri, $expectedBaseUrl, $expectedPathInfo) {
$request = new ApacheRequest();
$request->server
->replace($server);
$this
->assertEquals($expectedRequestUri, $request
->getRequestUri(), '->getRequestUri() is correct');
$this
->assertEquals($expectedBaseUrl, $request
->getBaseUrl(), '->getBaseUrl() is correct');
$this
->assertEquals($expectedPathInfo, $request
->getPathInfo(), '->getPathInfo() is correct');
}