src/response/PageResolver.php
public function createHeader() {
    if ($this->router->isTestRun()) {
      return;
    }

    http_response_code($this->getStatusCode());
    if ($this->response === null) {
      // exception was raised
      // FIXME ensure that a response is always given initialized with at least the content type header
      header(Header::CONTENT_TYPE . ":" . $this->getContentType());
    } else {
      foreach ($this->response->getHeaders() as $header => $value) {
        header($header . ":" . $value);
      }
    }
  }
public function createHeader() {
    if ($this->router->isTestRun()) {
      return;
    }

    http_response_code($this->getStatusCode());
    if ($this->response === null) {
      // exception was raised
      // FIXME ensure that a response is always given initialized with at least the content type header
      header(Header::CONTENT_TYPE . ":" . $this->getContentType());
    } else {
      foreach ($this->response->getHeaders() as $header => $value) {
        header($header . ":" . $value);
      }
    }
  }
public function createHeader ( ) { if ( $ this -> router -> isTestRun ( ) ) { return ; } http_response_code ( $ this -> getStatusCode ( ) ) ; if ( $ this -> response === null ) { // exception was raised // FIXME ensure that a response is always given initialized with at least the content type header header ( Header :: CONTENT_TYPE . ":" . $ this -> getContentType ( ) ) ; } else { foreach ( $ this -> response -> getHeaders ( ) as $ header => $ value ) { header ( $ header . ":" . $ value ) ; } } }
Method to set all necessary fields for the response header,
such as the content type or the status code.

This function will do nothing if this is a test run
Method to set all necessary fields for the response header such as the content type or the status code .