W3cubDocs

/Symfony 4.1

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.
https://api.symfony.com/4.1/Symfony/Bridge/PhpUnit/ClockMock.html