Example #1
0
 function __c3_send_file($filename)
 {
     if (!headers_sent()) {
         readfile($filename);
     }
     return __c3_exit();
 }
Example #2
0
 function __c3_error($message)
 {
     file_put_contents(C3_CODECOVERAGE_MEDIATE_STORAGE . DIRECTORY_SEPARATOR . time() . '-error.txt', $message);
     if (!headers_sent()) {
         header('X-Codeception-CodeCoverage-Error: ' . str_replace("\n", ' ', $message), true, 500);
     }
     setcookie('CODECEPTION_CODECOVERAGE_ERROR', $message);
     __c3_exit();
 }