Overview

Namespaces

  • phpmock
    • environment
    • functions
    • spy

Classes

  • AbstractSleepFunction
  • FixedDateFunction
  • FixedMicrotimeFunction
  • FixedValueFunction
  • SleepFunction
  • UsleepFunction

Interfaces

  • FunctionProvider
  • Incrementable
  • Overview
  • Namespace
  • Class

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
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.

Implementation of

phpmock\functions\FunctionProvider::getCallable()
API documentation generated by ApiGen