/** * @param AbstractView $response */ public static function contentTypeHeader(AbstractView $response) { $contentType = 'text/html'; $charset = Configuration::get('phpframework', 'output_charset', 'utf-8'); if ($charset) { $contentType .= '; charset=' . trim($charset); } $response->header('Content-Type', $contentType); }
/** * @test */ public function redirect() { $this->view->redirect('/'); }