mediatekformation

ClockMock
in package

Tags
author

Nicolas Grekas p@tchwork.com

author

Dominic Tubach dominic.tubach@to.com

Table of Contents

$now  : mixed
date()  : mixed
gmdate()  : mixed
microtime()  : mixed
register()  : mixed
sleep()  : mixed
time()  : mixed
usleep()  : mixed
withClockMock()  : mixed

Properties

Methods

date()

public static date(mixed $format[, mixed $timestamp = null ]) : mixed
Parameters
$format : mixed
$timestamp : mixed = null
Return values
mixed

gmdate()

public static gmdate(mixed $format[, mixed $timestamp = null ]) : mixed
Parameters
$format : mixed
$timestamp : mixed = null
Return values
mixed

microtime()

public static microtime([mixed $asFloat = false ]) : mixed
Parameters
$asFloat : mixed = false
Return values
mixed

register()

public static register(mixed $class) : mixed
Parameters
$class : mixed
Return values
mixed

sleep()

public static sleep(mixed $s) : mixed
Parameters
$s : mixed
Return values
mixed

time()

public static time() : mixed
Return values
mixed

usleep()

public static usleep(mixed $us) : mixed
Parameters
$us : mixed
Return values
mixed

withClockMock()

public static withClockMock([mixed $enable = null ]) : mixed
Parameters
$enable : mixed = null
Return values
mixed

Search results