Phive\Queue\Tests\TimeUtils::setTime PHP Method

setTime() private static method

private static setTime ( $timestamp )
    private static function setTime($timestamp)
    {
        $handler = function () use($timestamp) {
            return $timestamp;
        };
        uopz_function('time', $handler);
        uopz_function('DateTime', 'getTimestamp', $handler);
    }