public static function start_message_redirection() {
        if (self::$messagesink) {
            self::stop_message_redirection();
        }
        self::$messagesink = new phpunit_message_sink();
        return self::$messagesink;
    }
public static function start_message_redirection() {
        if (self::$messagesink) {
            self::stop_message_redirection();
        }
        self::$messagesink = new phpunit_message_sink();
        return self::$messagesink;
    }
public static function start_message_redirection ( ) { if ( self :: $ messagesink ) { self :: stop_message_redirection ( ) ; } self :: $ messagesink = new phpunit_message_sink ( ) ; return self :: $ messagesink ; }
Start message redirection.

Note: Do not call directly from tests,
use $sink = $this->redirectMessages() instead.

@return phpunit_message_sink
Start message redirection .