title: How to mock time() function while testing in Laravel?
body: <p>I'm doing a maths contest project using Laravel. All of the controller methods in the project uses a lot of time() functions. </p>
  
  <p>Questions are returned to the user depending on whether the current time is in between the contest live time.</p>
  
  <p>While writing the feature test and unit tests, how do I mimic the time() functions in the controller so as to set my desired time while running tests for the project?</p>