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

systemsdk / docker-symfony-api / #133

27 Oct 2024 05:36PM UTC coverage: 43.939% (-0.9%) from 44.861%
#133

push

DKravtsov
Updated composer dependencies, refactoring, improved DDD.

19 of 103 new or added lines in 11 files covered. (18.45%)

1631 of 3712 relevant lines covered (43.94%)

18.95 hits per line

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

0.0
/src/Tool/Infrastructure/Service/Utils/CheckDatabaseConnectionService.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace App\Tool\Infrastructure\Service\Utils;
6

7
use App\Tool\Domain\Service\Utils\Interfaces\CheckDatabaseConnectionServiceInterface;
8
use Doctrine\ORM\EntityManagerInterface;
9

10
/**
11
 * @package App\Tool
12
 */
13
class CheckDatabaseConnectionService implements CheckDatabaseConnectionServiceInterface
14
{
15
    public function __construct(
16
        private readonly EntityManagerInterface $em,
17
    ) {
NEW
18
    }
×
19

20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function checkConnection(): bool
24
    {
NEW
25
        $connection = $this->em->getConnection();
×
NEW
26
        $statement = $connection->prepare('SHOW TABLES');
×
NEW
27
        $statement->executeQuery();
×
28

NEW
29
        return true;
×
30
    }
31
}
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