Subscribe to PHP Freaks RSS

murze.be: ★ A package to control the flow of time

syndicated from www.phpdeveloper.org on June 25, 2019

Imagine you're building that your app can notify your user, but you don't want to send more than one notification in a timeframe of five seconds. How are you going to test the time aspect? Do you have to create a test that takes five minutes?

Luckily the answer is "no". If you're using the popula...