class Illuminate / Foundation / Testing / Wormhole
You are viewing an older version of the documentation. For the latest, please visit master documentation.

Wormhole

Properties

public

$value int

The amount of time to travel.

Default: null

Methods

public

__construct ( $value ) : void

Create a new wormhole instance.

Parameters

  • $value int
public

millisecond ( $callback ) : mixed

Travel forward the given number of milliseconds.

Parameters

  • $callback callable|null
public

milliseconds ( $callback ) : mixed

Travel forward the given number of milliseconds.

Parameters

  • $callback callable|null
public

second ( $callback ) : mixed

Travel forward the given number of seconds.

Parameters

  • $callback callable|null
public

seconds ( $callback ) : mixed

Travel forward the given number of seconds.

Parameters

  • $callback callable|null
public

minute ( $callback ) : mixed

Travel forward the given number of minutes.

Parameters

  • $callback callable|null
public

minutes ( $callback ) : mixed

Travel forward the given number of minutes.

Parameters

  • $callback callable|null
public

hour ( $callback ) : mixed

Travel forward the given number of hours.

Parameters

  • $callback callable|null
public

hours ( $callback ) : mixed

Travel forward the given number of hours.

Parameters

  • $callback callable|null
public

day ( $callback ) : mixed

Travel forward the given number of days.

Parameters

  • $callback callable|null
public

days ( $callback ) : mixed

Travel forward the given number of days.

Parameters

  • $callback callable|null
public

week ( $callback ) : mixed

Travel forward the given number of weeks.

Parameters

  • $callback callable|null
public

weeks ( $callback ) : mixed

Travel forward the given number of weeks.

Parameters

  • $callback callable|null
public

month ( $callback ) : mixed

Travel forward the given number of months.

Parameters

  • $callback callable|null
public

months ( $callback ) : mixed

Travel forward the given number of months.

Parameters

  • $callback callable|null
public

year ( $callback ) : mixed

Travel forward the given number of years.

Parameters

  • $callback callable|null
public

years ( $callback ) : mixed

Travel forward the given number of years.

Parameters

  • $callback callable|null
public static

back ( ) : DateTimeInterface

Travel back to the current time.

protected

handleCallback ( $callback ) : mixed

Handle the given optional execution callback.

Parameters

  • $callback callable|null