class MockMicrotime (View source)

Class to control the values returned from microtime().

Methods

static 
reset()

Reset the mock microtime() function - This clears any potential expected calls.

static 
expect(float $result)

Add an expected call to microtime().

Details

static reset()

Reset the mock microtime() function - This clears any potential expected calls.

static expect(float $result)

Add an expected call to microtime().

Parameters

float $result The result to return from microtime() when called.