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

tempestphp / tempest-framework / 14393323144

10 Apr 2025 04:27PM UTC coverage: 81.196% (-0.2%) from 81.363%
14393323144

push

github

web-flow
refactor(core): rename `DoNotDiscover` to `SkipDiscovery` (#1142)

7 of 9 new or added lines in 9 files covered. (77.78%)

52 existing lines in 11 files now uncovered.

11529 of 14199 relevant lines covered (81.2%)

106.5 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\Discovery\SkipDiscovery;
11
use Tempest\Generation\ClassManipulator;
12
use Tempest\Generation\DataObjects\StubFile;
13

14
#[SkipDiscovery]
15
final class GeneratorCommandStub
16
{
17
    use PublishesFiles;
18

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

28
        $this->stubFileGenerator->generateClassFile(
×
29
            stubFile: StubFile::from('MyStubClass::class'),
×
UNCOV
30
            targetPath: $targetPath,
×
31
            shouldOverride: $shouldOverride,
×
32
            manipulations: [
×
NEW
33
                fn (ClassManipulator $class) => $class->removeClassAttribute(SkipDiscovery::class),
×
UNCOV
34
            ],
×
UNCOV
35
        );
×
36

UNCOV
37
        $this->console->writeln();
×
UNCOV
38
        $this->console->success(sprintf('File successfully created at <file="%s"/>.', $targetPath));
×
39
    }
40
}
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