Contao\CoreBundle\Test\Contao\EnvironmentTest::testCgiFcgi PHP Method

testCgiFcgi() public method

Tests the cgi_fcgi environment.
public testCgiFcgi ( )
    public function testCgiFcgi()
    {
        $this->setSapi('cgi_fcgi');
        $_SERVER = ['SERVER_PORT' => 80, 'HTTP_HOST' => 'localhost', 'HTTP_CONNECTION' => 'close', 'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.149 Safari/537.36', 'HTTP_ACCEPT_ENCODING' => 'gzip,deflate,sdch', 'HTTP_ACCEPT_LANGUAGE' => 'de-DE,de;q=0.8,en-GB;q=0.6,en;q=0.4', 'HTTP_X_FORWARDED_FOR' => '123.456.789.0', 'SERVER_NAME' => 'localhost', 'SERVER_ADDR' => '127.0.0.1', 'DOCUMENT_ROOT' => $this->getRootDir(), 'SCRIPT_FILENAME' => $this->getRootDir() . '/core/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'QUERY_STRING' => 'do=test', 'REQUEST_URI' => '/core/en/academy.html?do=test', 'SCRIPT_NAME' => '/core/index.php', 'PHP_SELF' => '/core/index.php', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'PATH_INFO' => '/en/academy.html', 'SCRIPT_URI' => 'http://localhost/core/en/academy.html', 'SCRIPT_URL' => '/core/en/academy.html'];
        $this->runTests();
    }