PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/public_html/pro1/wp-content/plugins/boldgrid-backup/vendor/chland/tdcron/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/public_html/pro1/wp-content/plugins/boldgrid-backup/vendor/chland/tdcron/test.php |
<?php // Load classes require_once('class.tdcron.php'); require_once('class.tdcron.entry.php'); // Load tests require_once('test.data.php'); // Rock it.... $ok = 0; $fail = 0; echo "\n".str_repeat('-',80)."\n"; echo 'Testing '.count($tests).' expressions...'; echo "\n\n".str_repeat('-',80)."\n"; foreach ($tests as $curtest) { try { if (!empty($curtest['desc'])) { echo 'Description: ['.$curtest['desc'].']'."\n"; } echo 'Expression: ['.$curtest['expression'].']'."\n"; echo 'Ref-Time: ['.date('d.m.Y, H:i:s', $curtest['reftime'])."]\n\n"; if (isset($curtest['expected_n'])) { echo 'nextRun(): ['.date('d.m.Y, H:i:s', tdCron::getNextOccurrence($curtest['expression'],$curtest['reftime']))."]\n"; echo 'Expected: ['.$curtest['expected_n']."] - "; if (date('d.m.Y, H:i:s', tdCron::getNextOccurrence($curtest['expression'],$curtest['reftime'])) == $curtest['expected_n']) { echo 'passed!'; $ok++; } else { echo 'FAILED!'; $fail++; } echo "\n\n"; } if (isset($curtest['expected_l'])) { echo 'lastRun(): ['.date('d.m.Y, H:i:s', tdCron::getLastOccurrence($curtest['expression'],$curtest['reftime']))."]\n"; echo 'Expected: ['.$curtest['expected_l']."] - "; if (date('d.m.Y, H:i:s', tdCron::getLastOccurrence($curtest['expression'],$curtest['reftime'])) == $curtest['expected_l']) { echo 'passed!'; $ok++; } else { echo 'FAILED!'; $fail++; } echo "\n\n"; } } catch (Exception $e) { echo 'ERROR!'."\n\n"; print_r($e); } echo str_repeat('-',80)."\n"; } echo 'OK: '.$ok."\n"; echo 'FAIL: '.$fail."\n";