Kraken\_Unit\Util\Support\TimeSupportTest::testApiNow_ReturnsTimestampForNow PHP Метод

testApiNow_ReturnsTimestampForNow() публичный Метод

    public function testApiNow_ReturnsTimestampForNow()
    {
        $time = $this->createTimeSupportMock();
        $expected = time() * 1000;
        $now = $time->now();
        $this->assertGreaterThanOrEqual($expected, $now);
        $this->assertLessThan($expected + 1000, $now);
    }