new helper method waitForTick() in DokuWikiTest
Some of our tests require that at least one second has passed before they can continue because our revisions depend on the Unix Timestamp. Currently we use a sleep(1) for this. However this always waits a whole second, even if the next second is already much closer or maybe already here - especially when some processing has been done since the last operation. This new method waits for the next second by checking the time every 10th of a second. This might speed up some of our tests a bit.
Please register or sign in to comment