Scriptlog Docs

Scriptlog Documentation

Code reference for the Scriptlog codebase

User Tools

Site Tools


scriptlog:tests:healthendpointtest

tests/api/unit/HealthEndpointTest.php

Source: tests/api/unit/HealthEndpointTest.php · 64 lines, ~255 statements · namespace: (global) · `declare(strict_types=1)`: no


Health Endpoint Test

End-to-end tests for the GET /api/v1/health route registered in api/index.php. The closure returns status “healthy”, a timestamp in Y-m-d H:i:s format, and the runtime PHP version inside the standard ApiResponse envelope (data.status, data.timestamp, data.php_version).

Includes

Mode Target Line
require require_once DIR . '/../ApiTestCase.php'; 13

Types declared here


Generated by 'tools/gendoc'.

scriptlog/tests/healthendpointtest.txt · Last modified: by admin