Add proper charset to web test runner.

Fixes #2804
This commit is contained in:
mark_story 2012-04-18 22:45:55 -04:00
parent c49da62c23
commit dec67ef259

View file

@ -33,12 +33,24 @@ class CakeHtmlReporter extends CakeBaseReporter {
*/
public function paintHeader() {
$this->_headerSent = true;
$this->sendContentType();
$this->sendNoCacheHeaders();
$this->paintDocumentStart();
$this->paintTestMenu();
echo "<ul class='tests'>\n";
}
/**
* Set the content-type header so it is in the correct encoding.
*
* @return void
*/
public function sendContentType() {
if (!headers_sent()) {
header('Content-Type: text/html; charset=' . Configure::read('App.encoding'));
}
}
/**
* Paints the document start content contained in header.php
*