class Wormhole (View source)
int | $value | The amount of time to travel. |
void | __construct(int $value) Create a new wormhole instance. | |
mixed | milliseconds(callable|null $callback = null) Travel forward the given number of milliseconds. | |
mixed | seconds(callable|null $callback = null) Travel forward the given number of seconds. | |
mixed | minutes(callable|null $callback = null) Travel forward the given number of minutes. | |
mixed | hours(callable|null $callback = null) Travel forward the given number of hours. | |
mixed | days(callable|null $callback = null) Travel forward the given number of days. | |
mixed | weeks(callable|null $callback = null) Travel forward the given number of weeks. | |
mixed | years(callable|null $callback = null) Travel forward the given number of years. | |
mixed | handleCallback(callable|null $callback) Handle the given optional execution callback. |
Create a new wormhole instance.
Travel forward the given number of milliseconds.
Travel forward the given number of seconds.
Travel forward the given number of minutes.
Travel forward the given number of hours.
Travel forward the given number of days.
Travel forward the given number of weeks.
Travel forward the given number of years.
Handle the given optional execution callback.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Foundation/Testing/Wormhole.html