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

tempestphp / tempest-framework / 14161923512

30 Mar 2025 01:41PM UTC coverage: 80.964% (+0.2%) from 80.716%
14161923512

push

github

web-flow
ci: prevent coveralls failures from failing tests (#1104)

11058 of 13658 relevant lines covered (80.96%)

100.68 hits per line

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

0.0
/src/Tempest/Console/src/Stubs/GeneratorCommandStub.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Tempest\Console\Stubs;
6

7
use Tempest\Console\ConsoleArgument;
8
use Tempest\Console\ConsoleCommand;
9
use Tempest\Core\PublishesFiles;
10
use Tempest\Generation\DataObjects\StubFile;
11

12
final class GeneratorCommandStub
13
{
14
    use PublishesFiles;
15

16
    #[ConsoleCommand(name: 'dummy-command-slug')]
×
17
    public function __invoke(
18
        #[ConsoleArgument(description: 'The name of the class to create')]
19
        string $className,
20
    ): void {
21
        $suggestedPath = $this->getSuggestedPath($className);
×
22
        $targetPath = $this->promptTargetPath($suggestedPath);
×
23
        $shouldOverride = $this->askForOverride($targetPath);
×
24

25
        $this->stubFileGenerator->generateClassFile(
×
26
            stubFile: StubFile::from('MyStubClass::class'),
×
27
            targetPath: $targetPath,
×
28
            shouldOverride: $shouldOverride,
×
29
        );
×
30

31
        $this->console->writeln();
×
32
        $this->console->success(sprintf('File successfully created at <file="%s"/>.', $targetPath));
×
33
    }
34
}
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