• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bvlion / AppTanServer / 20205654148

14 Dec 2025 09:04AM UTC coverage: 25.627%. First build
20205654148

push

github

bvlion
format

12 of 49 new or added lines in 18 files covered. (24.49%)

143 of 558 relevant lines covered (25.63%)

0.8 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Application/Actions/HealthCheck/HealthCheckAction.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace App\Application\Actions\HealthCheck;
6

7
use PDO;
8
use Slim\Psr7\Response;
9
use App\Application\Actions\Action;
10

11
class HealthCheckAction extends Action
12
{
13
  public function __construct(private PDO $pdo)
14
  {
NEW
15
  }
×
16
  /**
17
   * {@inheritdoc}
18
   */
19
  protected function action(): Response
20
  {
21
    $stmt = $this->pdo->query('SELECT NOW() AS `current_time`');
×
22
    $result = $stmt->fetch(PDO::FETCH_ASSOC);
×
23

24
    $response = new Response();
×
25
    $response->getBody()->write(json_encode([
×
26
      'db_time' => $result['current_time'] ?? null,
×
27
      'status' => 'ok',
×
28
    ], JSON_UNESCAPED_UNICODE));
×
29

30
    return $response->withHeader('Content-Type', 'application/json');
×
31
  }
32
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc