Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Return current Unix timestamp
<?php time(): int
<?php             $signed_headers_string = "host";

        }



        $date_text = gmdate('Ymd', time());

        $time_text = $date_text . 'T000000Z';

        $algorithm = 'AWS4-HMAC-SHA256';

        $scope = $date_text . "/" . $AWSRegion . "/s3/aws4_request";
<?php             $signed_headers_string = "host";

        }



        $date_text = gmdate('Ymd', time());

        $time_text = $date_text . 'T000000Z';

        $algorithm = 'AWS4-HMAC-SHA256';

        $scope = $date_text . "/" . $AWSRegion . "/s3/aws4_request";
<?php             $signed_headers_string = "host";

        }



        $date_text = gmdate('Ymd', time());

        $time_text = $date_text . 'T000000Z';

        $algorithm = 'AWS4-HMAC-SHA256';

        $scope = $date_text . "/" . $AWSRegion . "/s3/aws4_request";
<?php         $server = [

            'SERVER_PROTOCOL' => $event->getProtocolVersion(),

            'REQUEST_METHOD' => $event->getMethod(),

            'REQUEST_TIME' => time(),

            'REQUEST_TIME_FLOAT' => microtime(true),

            'QUERY_STRING' => $event->getQueryString(),

            'DOCUMENT_ROOT' => getcwd(),
<?php         parent::setUp();



        ob_start();

        $this->fakeContext = new Context('abc', time(), 'abc', 'abc');

    }



    public function tearDown(): void
<?php         parent::setUp();



        ob_start();

        $this->fakeContext = new Context('abc', time(), 'abc', 'abc');

    }



    public function tearDown(): void
<?php             $this->fpm->handle([

                'version' => '1.0',

                'httpMethod' => 'GET',

            ], new Context('abc', time(), 'abc', 'abc'));

            $this->fail('No exception was thrown');

        } catch (Timeout $e) {

            $logs = ob_get_contents();
<?php         unset($response['$_SERVER']['HOME']);

        self::assertEqualsWithDelta(microtime(true), $response['$_SERVER']['REQUEST_TIME_FLOAT'], 5, '');

        unset($response['$_SERVER']['REQUEST_TIME_FLOAT']);

        self::assertEqualsWithDelta(time(), $response['$_SERVER']['REQUEST_TIME'], 5, '');

        unset($response['$_SERVER']['REQUEST_TIME']);