Respect\Rest\RouterTest::testRouterCanBeAutoDispatchedIfProtocolIsDefined PHP Метод

testRouterCanBeAutoDispatchedIfProtocolIsDefined() публичный Метод

    public function testRouterCanBeAutoDispatchedIfProtocolIsDefined()
    {
        $_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1';
        $router = new Router();
        $router->get('/', 'Hello Respect');
        unset($router);
        $this->expectOutputString('Hello Respect');
    }