Closed basz closed 7 years ago
Travis failed
time thing again, you have an easy suggestion to mock time?
What's the problem exactly?
new DateTime != new DateTime 6ms later... Therefore time comparisons fail sometimes.
I used often something like this:
$dateTime = new DateTimeImmutable('now');
$dateTime = $dateTime->modify('-5 secs');
so it's in the past and I can be sure the next timestamp is good for comparison.
Coverage remained the same at 100.0% when pulling 48625701b4e71bd8f98fa5c3dd78aa56e28df3c3 on basz:relax-dependency into b15354a20d3169b496852faaab0e43f7536dfab7 on zf-fr:master.