1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-23 17:12:41 +00:00
Arsse/tests/docroot/Feed/NextFetch/NotModified.php
J. King f04ba956a9 Tweaks to Feed tests
- Ensure Web server is up before running tests (skip otherwise)
- Place expected timestamps closer to assertions, to lessen chances of off-by-one failures
2017-05-21 23:26:36 -04:00

12 lines
No EOL
211 B
PHP

<?php
if(array_key_exists("t", $_GET)) {
return [
'code' => 304,
'lastMod' => (int) $_GET['t'],
];
} else {
return [
'code' => 304,
'cache' => false,
];
}