public static function setWidgetTestingLevel($level) { if (!$level) { return; } if ($level != Test_Integration::NO_WIDGET_TESTING && $level != Test_Integration::CHECK_WIDGET_ERRORS && $level != Test_Integration::COMPARE_WIDGET_OUTPUT) { echo "<p>Invalid option for 'widgetTestingLevel', ignoring.</p>\n"; return; } self::$widgetTestingLevel = $level; }