Example #1
0
/**
 * Complete
 */
function test_done()
{
    list($oks, $fails) = test_assertions::get();
    test_head(sprintf('%-10s (+%d, -%d) %s', test_assertions::$failed ? 'FAILED' : 'PASSED', $oks, $fails, basename($_SERVER['PHP_SELF'])));
    printf('Time: %.5f ms,  Mem: %.3f MB %s', microtime(1) - test_assertions::$start_time, memory_get_peak_usage() / 1048576, Strings::nl());
    // outro
    exit($fails ? 1 : 0);
}