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

tempestphp / tempest-framework / 14279052720

05 Apr 2025 06:00AM UTC coverage: 81.139% (+0.2%) from 80.906%
14279052720

Pull #1115

github

web-flow
Merge 900da6945 into 90e820853
Pull Request #1115: refactor(view): implement custom html parser

357 of 375 new or added lines in 16 files covered. (95.2%)

6 existing lines in 2 files now uncovered.

11344 of 13981 relevant lines covered (81.14%)

104.8 hits per line

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

50.0
/src/Tempest/View/src/Parser/TokenCollection.php
1
<?php
2

3
namespace Tempest\View\Parser;
4

5
use ArrayIterator;
6
use IteratorAggregate;
7
use Traversable;
8

9
/**
10
 * @implements IteratorAggregate<\Tempest\View\Parser\Token>
11
 */
12
final class TokenCollection implements IteratorAggregate
13
{
14
    public function __construct(
147✔
15
        private array $tokens = [],
16
    ) {}
147✔
17

18
    public function add(Token $token): self
135✔
19
    {
20
        $this->tokens[] = $token;
135✔
21

22
        return $this;
135✔
23
    }
24

25
    public function getIterator(): Traversable
147✔
26
    {
27
        return new ArrayIterator($this->tokens);
147✔
28
    }
29

NEW
30
    public function __debugInfo(): array
×
31
    {
NEW
32
        return [
×
NEW
33
            implode(
×
NEW
34
                ', ' . PHP_EOL,
×
NEW
35
                array_map(fn (Token $token) => $token->__debugInfo()[0], $this->tokens),
×
NEW
36
            ),
×
NEW
37
        ];
×
38
    }
39
}
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