src/ResponseConvertor.php
public function convert(ResponseInterface $psrResponse)
    {
        return new BrowserKitResponse(
            (string)$psrResponse->getBody(),
            $psrResponse->getStatusCode() ?: 200,
            $this->flattenHeaders($psrResponse->getHeaders())
        );
    }
public function convert(ResponseInterface $psrResponse)
    {
        return new BrowserKitResponse(
            (string)$psrResponse->getBody(),
            $psrResponse->getStatusCode() ?: 200,
            $this->flattenHeaders($psrResponse->getHeaders())
        );
    }
public function convert ( ResponseInterface $ psrResponse ) { return new BrowserKitResponse ( ( string ) $ psrResponse -> getBody ( ) , $ psrResponse -> getStatusCode ( ) ? : 200 , $ this -> flattenHeaders ( $ psrResponse -> getHeaders ( ) ) ) ; }
Convert a PSR-7 response to a codeception response

@param ResponseInterface $psrResponse
@return BrowserKitResponse
Convert a PSR - 7 response to a codeception response