public static function display_debugging_messages($return = false) {
        if (empty(self::$debuggings)) {
            return false;
        }

        $debugstring = '';
        foreach(self::$debuggings as $debug) {
            $debugstring .= 'Debugging: ' . $debug->message . "\n" . trim($debug->from) . "\n";
        }

        if ($return) {
            return $debugstring;
        }
        echo $debugstring;
        return true;
    }
public static function display_debugging_messages($return = false) {
        if (empty(self::$debuggings)) {
            return false;
        }

        $debugstring = '';
        foreach(self::$debuggings as $debug) {
            $debugstring .= 'Debugging: ' . $debug->message . "\n" . trim($debug->from) . "\n";
        }

        if ($return) {
            return $debugstring;
        }
        echo $debugstring;
        return true;
    }
public static function display_debugging_messages ( $ return = false ) { if ( empty ( self :: $ debuggings ) ) { return false ; } $ debugstring = '' ; foreach ( self :: $ debuggings as $ debug ) { $ debugstring .= 'Debugging: ' . $ debug -> message . "\n" . trim ( $ debug -> from ) . "\n" ; } if ( $ return ) { return $ debugstring ; } echo $ debugstring ; return true ; }
Prints out any debug messages accumulated during test execution.

@param bool $return true to return the messages or false to print them directly. Default false.
@return bool|string false if no debug messages, true if debug triggered or string of messages
Prints out any debug messages accumulated during test execution .