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

tempestphp / tempest-framework / 14205916051

01 Apr 2025 09:00PM UTC coverage: 81.054% (+0.09%) from 80.964%
14205916051

Pull #1105

github

web-flow
Merge 50c7146c9 into 9c84c680a
Pull Request #1105: feat(core): introduce tagged configurations

50 of 57 new or added lines in 12 files covered. (87.72%)

3 existing lines in 3 files now uncovered.

11132 of 13734 relevant lines covered (81.05%)

103.18 hits per line

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

0.0
/src/Tempest/Database/src/Config/MysqlConfig.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 MysqlConfig implements DatabaseConfig
12
{
13
    public string $dsn {
14
        get => sprintf(
15
            'mysql:host=%s:%s;dbname=%s',
16
            $this->host,
17
            $this->port,
18
            $this->database,
19
        );
20
    }
21

22
    public DatabaseDialect $dialect {
23
        get => DatabaseDialect::MYSQL;
24
    }
25

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