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

68publishers / tracy-git-version / 5982450498

26 Aug 2023 03:02AM UTC coverage: 90.041% (-2.2%) from 92.276%
5982450498

push

github

tg666
Coverage: using `pcov` instead of `phpdbg`

434 of 482 relevant lines covered (90.04%)

0.9 hits per line

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

55.56
/src/Bridge/Tracy/Helpers.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace SixtyEightPublishers\TracyGitVersion\Bridge\Tracy;
6

7
use Throwable;
8
use function extract;
9
use function ob_end_clean;
10
use function ob_get_clean;
11
use function ob_start;
12

13
final class Helpers
14
{
15
    private function __construct()
16
    {
17
    }
×
18

19
    /**
20
     * @param array<string, mixed> $params
21
     *
22
     * @throws Throwable
23
     */
24
    public static function renderTemplate(string $templatePath, array $params = []): string
25
    {
26
        ob_start(static function () {
1✔
27
        });
1✔
28

29
        try {
30
            extract($params, EXTR_OVERWRITE);
1✔
31

32
            require $templatePath;
1✔
33

34
            return (string) ob_get_clean();
1✔
35
        } catch (Throwable $e) {
×
36
            ob_end_clean();
×
37

38
            throw $e;
×
39
        }
40
    }
41
}
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