Neos\Flow\Tests\Functional\Http\RequestHandlerTest::httpRequestIsConvertedToAnActionRequestAndDispatchedToTheRespectiveController PHP 메소드

httpRequestIsConvertedToAnActionRequestAndDispatchedToTheRespectiveController() 공개 메소드

    public function httpRequestIsConvertedToAnActionRequestAndDispatchedToTheRespectiveController()
    {
        $foundRoute = false;
        foreach ($this->router->getRoutes() as $route) {
            if ($route->getName() === 'Flow :: Functional Test: HTTP - FooController') {
                $foundRoute = true;
            }
        }
        if (!$foundRoute) {
            $this->markTestSkipped('In this distribution the Flow routes are not included into the global configuration.');
            return;
        }
        $_SERVER = ['HTTP_HOST' => 'localhost', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/typo3/flow/test/http/foo', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php'];
        $requestHandler = $this->getAccessibleMock(RequestHandler::class, ['boot'], [self::$bootstrap]);
        $requestHandler->exit = function () {
        };
        $requestHandler->handleRequest();
        $this->expectOutputString('FooController responded');
    }