<?php

/**
 * TestTimer.php
 * 文件描述
 * Created On 2022/1/26
 * @author yuanb yuanbo0x@gmail.com
 */

namespace Test\Timer;

use Framework\Lib\Utils;
use Framework\Logic\TimerLogic;
use Game\Constant\ModelTypeDefine;
use Test\TestBase;

class TestTimer extends TestBase
{
    use TimerLogic;

    public function getPlayerId(): int
    {
        return 288417080025051469;
    }

    public function startTest()
    {
        $testModel = ModelTypeDefine::ITEM;
        $testTitleId = 1002;
        $testTime = 1644994768;

        $addRet = $this->addTimer($testModel, $testTitleId, $testTime);

        $this->timerHeartBeat(Utils::getServerTimestamp());
    }
}