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

tempestphp / tempest-framework / 14024978163

23 Mar 2025 05:55PM UTC coverage: 79.391% (-0.05%) from 79.441%
14024978163

push

github

web-flow
feat(view): cache Blade and Twig templates in internal storage (#1061)

2 of 2 new or added lines in 2 files covered. (100.0%)

912 existing lines in 110 files now uncovered.

10478 of 13198 relevant lines covered (79.39%)

91.09 hits per line

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

0.0
/src/Tempest/View/src/Exceptions/ViewCompilationError.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\View\Exceptions;
6

7
use Exception;
8
use Throwable;
9

10
use function Tempest\Support\str;
11

12
final class ViewCompilationError extends Exception
13
{
UNCOV
14
    public function __construct(string $path, string $content, Throwable $previous)
×
15
    {
16
        $excerpt = str($content)
×
17
            ->excerpt(
×
18
                $previous->getLine() - 5,
×
19
                $previous->getLine() + 5,
×
20
                asArray: true,
×
21
            )
×
22
            ->map(function (string $line, int $number) use ($previous) {
×
23
                return sprintf(
×
24
                    '%s%s | %s',
×
25
                    $number === $previous->getLine() ? '> ' : '  ',
×
26
                    $number,
×
27
                    $line,
×
28
                );
×
29
            })
×
UNCOV
30
            ->implode(PHP_EOL);
×
31

32
        $message = sprintf(
×
UNCOV
33
            '%s
×
34
%s
35
%s 
36

37
%s
38

39
In %s
40
',
×
41
            str_repeat('-', strlen($previous->getMessage())),
×
42
            $previous->getMessage(),
×
43
            str_repeat('-', strlen($previous->getMessage())),
×
UNCOV
44
            $excerpt,
×
45
            $path,
×
46
        );
×
47

48
        parent::__construct(
×
UNCOV
49
            message: $message,
×
UNCOV
50
            previous: $previous,
×
UNCOV
51
        );
×
52
    }
53
}
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