• 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

77.78
/src/Tempest/Console/src/Output/MemoryOutputBuffer.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\Console\Output;
6

7
use Tempest\Console\OutputBuffer;
8

9
final class MemoryOutputBuffer implements OutputBuffer
10
{
11
    private array $buffer = [];
12

13
    public function __construct()
247✔
14
    {
15
    }
247✔
16

17
    public function write(string $contents): void
188✔
18
    {
19
        $this->buffer[] = $contents;
188✔
20
    }
21

UNCOV
22
    public function getBufferWithFormatting(): array
×
23
    {
UNCOV
24
        return $this->buffer;
×
25
    }
26

27
    public function getBufferWithoutFormatting(): array
83✔
28
    {
29
        return array_map(
83✔
30
            fn (string $line) => preg_replace('/\x1b\[[0-9;]*m/', '', $line),
83✔
31
            $this->buffer,
83✔
32
        );
83✔
33
    }
34

35
    public function asUnformattedString(): string
81✔
36
    {
37
        return implode('', $this->getBufferWithoutFormatting());
81✔
38
    }
39

UNCOV
40
    public function asFormattedString(): string
×
41
    {
UNCOV
42
        return implode('', $this->buffer);
×
43
    }
44

45
    public function clear(): self
71✔
46
    {
47
        $this->buffer = [];
71✔
48

49
        return $this;
71✔
50
    }
51
}
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