PHP Class phpmock\functions\FixedDateFunction

Author: Markus Malkusch ([email protected])
Inheritance: implements phpmock\functions\FunctionProvider, implements phpmock\functions\Incrementable
Show file Open project: php-mock/php-mock

Public Methods

Method Description
__construct ( integer $timestamp = null ) Set the timestamp.
getCallable ( ) : callable Returns the mocked date() function.
increment ( $increment )

Method Details

__construct() public method

Set the timestamp.
public __construct ( integer $timestamp = null )
$timestamp integer The timestamp, if ommited the current time.

getCallable() public method

Returns the mocked date() function.
public getCallable ( ) : callable
return callable The callable for this object.

increment() public method

public increment ( $increment )