Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

martin88's avatar

Server time during tests

Is there a simple way to set the server time before the tests? I have written some tests for a booking system and everything is depending on times and dates. Now it would be great to have the option to set the server time before running the test. What would be the simplest way to achieve this?

0 likes
3 replies
martin88's avatar

Thank you very much! Love the wormhole option :)

Please or to participate in this conversation.