Vigyata.AI
Is this your channel?
GithubGithub00

25 Add Sleep class

This PR is where the new Sleep class was added. I like it because the syntax is very fluent, and the fake() support is super useful for tests so you don’t slow down your suite with real waits.

Buy on Github

You'll be taken to Github to complete your purchase.

Pros

  • +Fluent, intuitive sleep syntax (minutes/seconds/milliseconds)
  • +Can be faked in tests to keep them fast

Cons

  • -You need to learn the new API if you’re used to PHP sleep()

Featured in this video