• 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

94.12
/src/Tempest/Reflection/src/FunctionReflector.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\Reflection;
6

7
use Closure;
8
use Generator;
9
use ReflectionFunction as PHPReflectionFunction;
10

11
final readonly class FunctionReflector implements Reflector
12
{
13
    private PHPReflectionFunction $reflectionFunction;
14

15
    public function __construct(PHPReflectionFunction|Closure $function)
671✔
16
    {
17
        $this->reflectionFunction = ($function instanceof Closure)
671✔
18
            ? new PHPReflectionFunction($function)
671✔
UNCOV
19
            : $function;
×
20
    }
21

22
    public function invokeArgs(array $args = []): mixed
668✔
23
    {
24
        return $this->reflectionFunction->invokeArgs($args);
668✔
25
    }
26

27
    /** @return Generator|\Tempest\Reflection\ParameterReflector[] */
28
    public function getParameters(): Generator
669✔
29
    {
30
        foreach ($this->reflectionFunction->getParameters() as $parameter) {
669✔
31
            yield new ParameterReflector($parameter);
131✔
32
        }
33
    }
34

35
    public function getName(): string
671✔
36
    {
37
        return $this->reflectionFunction->getName();
671✔
38
    }
39

40
    public function getShortName(): string
1✔
41
    {
42
        return $this->reflectionFunction->getShortName();
1✔
43
    }
44

45
    public function getFileName(): string
671✔
46
    {
47
        return $this->reflectionFunction->getFileName();
671✔
48
    }
49

50
    public function getStartLine(): int
671✔
51
    {
52
        return (int) $this->reflectionFunction->getStartLine();
671✔
53
    }
54
}
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