src/Codeception/Lib/Connector/ZF1.php
private function formatResponseHeaders(\Zend_Controller_Response_Abstract $response)
    {
        $headers = [];
        foreach ($response->getHeaders() as $header) {
            $name = $header['name'];
            if (array_key_exists($name, $headers)) {
                if ($header['replace']) {
                    $headers[$name] = $header['value'];
                }
            } else {
                $headers[$name] = $header['value'];
            }
        }
        return $headers;
    }
private function formatResponseHeaders(\Zend_Controller_Response_Abstract $response)
    {
        $headers = [];
        foreach ($response->getHeaders() as $header) {
            $name = $header['name'];
            if (array_key_exists($name, $headers)) {
                if ($header['replace']) {
                    $headers[$name] = $header['value'];
                }
            } else {
                $headers[$name] = $header['value'];
            }
        }
        return $headers;
    }
private function formatResponseHeaders ( \ Zend_Controller_Response_Abstract $ response ) { $ headers = [ ] ; foreach ( $ response -> getHeaders ( ) as $ header ) { $ name = $ header [ 'name' ] ; if ( array_key_exists ( $ name , $ headers ) ) { if ( $ header [ 'replace' ] ) { $ headers [ $ name ] = $ header [ 'value' ] ; } } else { $ headers [ $ name ] = $ header [ 'value' ] ; } } return $ headers ; }
Format up the ZF1 response headers into Symfony\Component\BrowserKit\Response headers format.

@param \Zend_Controller_Response_Abstract $response The ZF1 Response Object.
@return array the clean key/value headers
Format up the ZF1 response headers into Symfony \ Component \ BrowserKit \ Response headers format .