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

tempestphp / tempest-framework / 14049246919

24 Mar 2025 09:42PM UTC coverage: 79.353% (-0.04%) from 79.391%
14049246919

push

github

web-flow
feat(support): support array parameters in string manipulations (#1073)

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

735 existing lines in 126 files now uncovered.

10492 of 13222 relevant lines covered (79.35%)

90.78 hits per line

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

55.56
/src/Tempest/Container/src/InitializerDiscovery.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\Container;
6

7
use Tempest\Discovery\Discovery;
8
use Tempest\Discovery\DiscoveryLocation;
9
use Tempest\Discovery\IsDiscovery;
10
use Tempest\Reflection\ClassReflector;
11

12
/**
13
 * @property GenericContainer $container
14
 */
15
final class InitializerDiscovery implements Discovery
16
{
17
    use IsDiscovery;
18

19
    public function __construct(
660✔
20
        private readonly Container $container,
21
    ) {}
660✔
22

UNCOV
23
    public function discover(DiscoveryLocation $location, ClassReflector $class): void
×
24
    {
UNCOV
25
        if (! $class->implements(Initializer::class) && ! $class->implements(DynamicInitializer::class)) {
×
26
            return;
×
27
        }
28

UNCOV
29
        $this->discoveryItems->add($location, $class->getName());
×
30
    }
31

32
    public function apply(): void
660✔
33
    {
34
        foreach ($this->discoveryItems as $className) {
660✔
35
            $this->container->addInitializer($className);
660✔
36
        }
37
    }
38
}
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