• 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

18.18
/src/Tempest/Console/src/Exceptions/InvalidCommandException.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\Console\Exceptions;
6

7
use Tempest\Console\Actions\RenderConsoleCommand;
8
use Tempest\Console\Console;
9
use Tempest\Console\ConsoleCommand;
10
use Tempest\Console\Input\ConsoleArgumentDefinition;
11

12
final class InvalidCommandException extends ConsoleException
13
{
14
    public function __construct(
4✔
15
        public readonly ConsoleCommand $consoleCommand,
16

17
        /** @var \Tempest\Console\Input\ConsoleArgumentDefinition[] $invalidArguments */
18
        public readonly array $invalidArguments,
19
    ) {}
4✔
20

UNCOV
21
    public function render(Console $console): void
×
22
    {
UNCOV
23
        $console->error('Invalid command usage:');
×
24

UNCOV
25
        (new RenderConsoleCommand($console))($this->consoleCommand);
×
26

UNCOV
27
        $missingArguments = implode(', ', array_map(
×
28
            fn (ConsoleArgumentDefinition $argumentDefinition) => $argumentDefinition->name,
×
29
            $this->invalidArguments,
×
30
        ));
×
31

UNCOV
32
        if ($missingArguments) {
×
33
            $console->writeln("Missing arguments: {$missingArguments}");
×
34
        }
35
    }
36
}
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