One of the language features announced back in PHP 5.6 was the addition of the “…” token to denote that a function or method accepts a variable length of arguments.
When dealing with promises while writing tests there are several approaches you can take.
We will start with some specs that just have to consume a promise. Youusually don’t care what the dependency that creates the promise…