2 if (!defined('MEDIAWIKI') ||
!defined('SELENIUMTEST')) {
3 echo "This script cannot be run standalone";
7 class SeleniumTestConsoleLogger
9 public function __construct()
11 // Prepare testsuite for immediate output
12 @ini_set
('zlib.output_compression', 0);
13 @ini_set
('implicit_flush', 1);
14 for ($i = 0; $i < ob_get_level(); $i++
) { ob_end_flush(); }
19 public function write($message, $mode = false)
22 //if ($mode == MW_TESTLOGGER_RESULT_OK) $out .= '<font color="green">';
23 $out .= htmlentities($message);
24 //if ($mode == MW_TESTLOGGER_RESULT_OK) $out .= '</font>';
25 if ($mode != MW_TESTLOGGER_CONTINUE_LINE
) $out .= "\n";