* Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) * * Licensed under The Open Group Test Suite License * Redistributions of files must retain the above copyright notice. * * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) * @link http://cakephp.org CakePHP(tm) Project * @package cake * @subpackage cake.tests.libs.reporter * @since CakePHP(tm) v 1.2.0.4433 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ include_once dirname(__FILE__) . DS . 'cake_base_reporter.php'; /** * CakeHtmlReporter Reports Results of TestSuites and Test Cases * in an HTML format / context. * * @package cake * @subpackage cake.tests.lib */ class CakeHtmlReporter extends CakeBaseReporter { /** * Constructor * * @param string $charset * @param string $params * @return void */ function CakeHtmlReporter($charset = 'utf-8', $params = array()) { $params = array_map(array($this, '_htmlEntities'), $params); $this->CakeBaseReporter($charset, $params); } /** * Paints the top of the web page setting the * title to the name of the starting test. * * @param string $test_name Name class of test. * @return void * @access public */ function paintHeader($testName) { $this->sendNoCacheHeaders(); $this->paintDocumentStart(); $this->paintTestMenu(); printf("

%s

\n", $this->_htmlEntities($testName)); echo "