/**
  * After executing the message queue tests, restore the original queue interfaces.
  * @return void
  */
 function tearDownOnce()
 {
     // Remove any queue definitions that are set up by tests. Currently only 'default' is used.
     MessageQueue::remove_interface("default");
     // Restore each interface.
     foreach (self::$saved_interfaces as $name => $def) {
         MessageQueue::add_interface($name, $def);
     }
     parent::tearDownOnce();
 }
<?php

/**
 * URL rules for the CMS module
 *
 * @package newsletter
 */
if (!defined('NEWSLETTER_DIR')) {
    define('NEWSLETTER_DIR', basename(dirname(__FILE__)));
}
if (class_exists('MessageQueue')) {
    MessageQueue::add_interface("default", array("queues" => "/.*/", "implementation" => "SimpleDBMQ", "encoding" => "php_serialize", "send" => array("onShutdown" => "all"), "delivery" => array("onerror" => array("log")), "retrigger" => "no", "onShutdownMessageLimit" => "1"));
}
//SS_Log::add_writer(new SS_LogFileWriter(BASE_PATH . '/logN.txt'), SS_Log::NOTICE);
//SS_Log::add_writer(new SS_LogFileWriter(BASE_PATH . '/logW.txt'), SS_Log::WARN);
//SS_Log::add_writer(new SS_LogFileWriter(BASE_PATH . '/logE.txt'), SS_Log::ERR);