ClockMock

class ClockMock

Methods

static withClockMock($enable = null)
static time()
static sleep($s)
static usleep($us)
static microtime($asFloat = false)
static register($class)

Details

static withClockMock($enable = null)

Parameters

$enable

static time()

static sleep($s)

Parameters

$s

static usleep($us)

Parameters

$us

static microtime($asFloat = false)

Parameters

$asFloat

static register($class)

Parameters

$class

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Bridge/PhpUnit/ClockMock.html