Neos\Flow\Tests\Unit\Http\RequestTest::constructorCorrectlyStripsOffIndexPhpFromRequestUri PHP Method

constructorCorrectlyStripsOffIndexPhpFromRequestUri() public method

public constructorCorrectlyStripsOffIndexPhpFromRequestUri ( string $host, string $requestUri, string $expectedUri )
$host string
$requestUri string
$expectedUri string
    public function constructorCorrectlyStripsOffIndexPhpFromRequestUri($host, $requestUri, $expectedUri)
    {
        $server = ['HTTP_HOST' => $host, 'REQUEST_URI' => $requestUri];
        $request = new Request([], [], [], $server);
        $this->assertEquals($expectedUri, (string) $request->getUri());
    }
RequestTest