Sleeping is not the best option
An example of a technique that might be used to effectively test asynchronous code
Tags: testing, php, webdev, refactoring