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

tempestphp / tempest-framework / 14249476557

03 Apr 2025 05:49PM UTC coverage: 81.104% (+0.03%) from 81.07%
14249476557

Pull #1105

github

web-flow
Merge ef88a3d6b into b96e68dbd
Pull Request #1105: feat(core): introduce tagged configurations

42 of 47 new or added lines in 7 files covered. (89.36%)

3 existing lines in 3 files now uncovered.

11198 of 13807 relevant lines covered (81.1%)

104.68 hits per line

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

0.0
/src/Tempest/Database/src/Config/PostgresConfig.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\Database\Config;
6

7
use SensitiveParameter;
8
use Tempest\Database\Tables\NamingStrategy;
9
use Tempest\Database\Tables\PluralizedSnakeCaseStrategy;
10

11
final class PostgresConfig implements DatabaseConfig
12
{
13
    public string $dsn {
14
        get => sprintf(
15
            'pgsql:host=%s;port=%s;dbname=%s;user=%s;password=%s',
16
            $this->host,
17
            $this->port,
18
            $this->database,
19
            $this->username,
20
            $this->password,
21
        );
22
    }
23

24
    public DatabaseDialect $dialect {
25
        get => DatabaseDialect::POSTGRESQL;
26
    }
27

28
    public function __construct(
×
29
        #[SensitiveParameter]
30
        public string $host = '127.0.0.1',
31
        #[SensitiveParameter]
32
        public string $port = '5432',
33
        #[SensitiveParameter]
34
        public string $username = '',
35
        #[SensitiveParameter]
36
        public string $password = '',
37
        #[SensitiveParameter]
38
        public string $database = 'app',
39
        public NamingStrategy $namingStrategy = new PluralizedSnakeCaseStrategy(),
40
        public ?string $tag = null,
UNCOV
41
    ) {}
×
42
}
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