Class FixedDateFunction
Mock function for date() which returns always the same time.
- phpmock\functions\FixedDateFunction implements phpmock\functions\FunctionProvider, phpmock\functions\Incrementable
Namespace: phpmock\functions
License: WTFPL
Author: Markus Malkusch markus@malkusch.de
Link: Donations
Located at functions/FixedDateFunction.php
Methods summary
License: WTFPL
Author: Markus Malkusch markus@malkusch.de
Link: Donations
Located at functions/FixedDateFunction.php
public
#
__construct( integer $timestamp = null )
Set the timestamp.
Set the timestamp.
Parameters
- $timestamp
- The timestamp, if ommited the current time.
public
callable
#
getCallable( )
Returns the mocked date() function.
Returns the mocked date() function.
Returns
callable
The callable for this object.
The callable for this object.