original_string: public static function start_message_redirection() {
          if (self::$messagesink) {
              self::stop_message_redirection();
          }
          self::$messagesink = new phpunit_message_sink();
          return self::$messagesink;
      }
code: public static function start_message_redirection() {
          if (self::$messagesink) {
              self::stop_message_redirection();
          }
          self::$messagesink = new phpunit_message_sink();
          return self::$messagesink;
      }
code_tokens: public static function start_message_redirection ( ) { if ( self :: $ messagesink ) { self :: stop_message_redirection ( ) ; } self :: $ messagesink = new phpunit_message_sink ( ) ; return self :: $ messagesink ; }
docstring: Start message redirection.
  
  Note: Do not call directly from tests,
  use $sink = $this->redirectMessages() instead.
  
  @return phpunit_message_sink
docstring_tokens: Start message redirection .