public function convert(BrowserKitRequest $request, ServerRequestInterface $baseRequest)
    {
        $stream = $this->createStream($request);
        list($uri, $queryParams) = $this->buildFullUri($request);
        
        if ($baseRequest instanceof ServerRequest) {
            $serverParams = $this->determineServerParams($request, $uri, (array)$queryParams);
            $psrRequest = $baseRequest->withServerParams($request->getServer() + $serverParams);
        } else {
            $psrRequest = $this->setRequestHeaders($baseRequest, $request->getServer());
        }
        
        return $this->setRequestProperties($psrRequest, $request, $stream, $uri, (array)$queryParams);
    }
public function convert(BrowserKitRequest $request, ServerRequestInterface $baseRequest)
    {
        $stream = $this->createStream($request);
        list($uri, $queryParams) = $this->buildFullUri($request);
        
        if ($baseRequest instanceof ServerRequest) {
            $serverParams = $this->determineServerParams($request, $uri, (array)$queryParams);
            $psrRequest = $baseRequest->withServerParams($request->getServer() + $serverParams);
        } else {
            $psrRequest = $this->setRequestHeaders($baseRequest, $request->getServer());
        }
        
        return $this->setRequestProperties($psrRequest, $request, $stream, $uri, (array)$queryParams);
    }
public function convert ( BrowserKitRequest $ request , ServerRequestInterface $ baseRequest ) { $ stream = $ this -> createStream ( $ request ) ; list ( $ uri , $ queryParams ) = $ this -> buildFullUri ( $ request ) ; if ( $ baseRequest instanceof ServerRequest ) { $ serverParams = $ this -> determineServerParams ( $ request , $ uri , ( array ) $ queryParams ) ; $ psrRequest = $ baseRequest -> withServerParams ( $ request -> getServer ( ) + $ serverParams ) ; } else { $ psrRequest = $ this -> setRequestHeaders ( $ baseRequest , $ request -> getServer ( ) ) ; } return $ this -> setRequestProperties ( $ psrRequest , $ request , $ stream , $ uri , ( array ) $ queryParams ) ; }
Convert a codeception request to a PSR-7 server request

@param BrowserKitRequest      $request
@param ServerRequestInterface $baseRequest
@return ServerRequest
Convert a codeception request to a PSR - 7 server request