}
}
if (!$success) {
- elgg_log(" [This view ($view) does not exist] ", 'ERROR');
+ elgg_log("The view $view does not exist", 'ERROR');
}
} else if (!file_exists("$view_location$viewtype/$view.php")) {
- elgg_log(" [This view ($view) does not exist] ", 'WARNING');
+ elgg_log("The view $view does not exist", 'WARNING');
}
}
$to_screen = !($CONFIG->debug == 'NOTICE');
switch ($level) {
- case 'DEBUG':
case 'ERROR':
// always report
elgg_dump("$level: $message", $to_screen);
break;
case 'WARNING':
+ case 'DEBUG':
// report execept if user wants only errors
if ($CONFIG->debug != 'ERROR') {
elgg_dump("$level: $message", $to_screen);
// Only run tests in debug mode.
if (!isset($CONFIG->debug)) {
- // @todo display an error?
- exit (1);
+ exit ('The site must be in debug mode to run unit tests.');
}
if (TextReporter::inCli()) {