예제 #1
0
 function testDebugDoNotEmail()
 {
     \Sleepy\Debug::$enable_send = false;
     $this->assertFalse(\Sleepy\Debug::sendEmail());
 }
예제 #2
0
    define('EMAIL_CC', "");
    define('EMAIL_BCC', "");
    // Analytics
    define('GA_ACCOUNT', "");
} else {
    define("ENV", "DEV");
    // Base Directory/URL
    define("URLBASE", "/");
    define("DIRBASE", $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'app');
    // DB Credentials
    define("DBHOST", "");
    define("DBUSER", "");
    define("DBPASS", "");
    define("DBNAME", "");
    // Email information
    define('EMAIL_FROM', "");
    define('EMAIL_TO', "");
    define('EMAIL_CC', "");
    define('EMAIL_BCC', "");
    // Analytics
    define('GA_ACCOUNT', "");
}
// Set Debugging
if (class_exists('\\Sleepy\\Debug')) {
    \Sleepy\Debug::$enable_show = true;
    // Show debug info on screen
    \Sleepy\Debug::$enable_send = false;
    // Send debug info via email
    \Sleepy\Debug::$enable_log = false;
    // Log debug info to a db
}