• 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

45.45
/src/Tempest/Console/src/Discovery/ConsoleCommandDiscovery.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\Console\Discovery;
6

7
use Tempest\Console\ConsoleCommand;
8
use Tempest\Console\ConsoleConfig;
9
use Tempest\Discovery\Discovery;
10
use Tempest\Discovery\DiscoveryLocation;
11
use Tempest\Discovery\IsDiscovery;
12
use Tempest\Reflection\ClassReflector;
13

14
final class ConsoleCommandDiscovery implements Discovery
15
{
16
    use IsDiscovery;
17

18
    public function __construct(
660✔
19
        private readonly ConsoleConfig $consoleConfig,
20
    ) {}
660✔
21

UNCOV
22
    public function discover(DiscoveryLocation $location, ClassReflector $class): void
×
23
    {
UNCOV
24
        foreach ($class->getPublicMethods() as $method) {
×
25
            $consoleCommand = $method->getAttribute(ConsoleCommand::class);
×
26

UNCOV
27
            if (! $consoleCommand) {
×
28
                continue;
×
29
            }
30

UNCOV
31
            $this->discoveryItems->add($location, [$method, $consoleCommand]);
×
32
        }
33
    }
34

35
    public function apply(): void
660✔
36
    {
37
        foreach ($this->discoveryItems as [$method, $consoleCommand]) {
660✔
38
            $this->consoleConfig->addCommand($method, $consoleCommand);
660✔
39
        }
40
    }
41
}
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