Skip to content

Commit df467e2

Browse files
committed
[Console] Cleanup test
1 parent 3685cdb commit df467e2

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/Symfony/Component/Console/Tests/ApplicationTest.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,10 @@ public function testAddCommandWithInvokableCommand()
266266
public function testAddCommandWithInvokableExtendedCommand()
267267
{
268268
$application = new Application();
269-
$application->addCommand($foo = new InvokableExtendedTestCommand());
269+
$application->addCommand($foo = new InvokableExtendingCommandTestCommand());
270270
$commands = $application->all();
271271

272-
$this->assertEquals($foo, $commands['invokable-extended']);
272+
$this->assertEquals($foo, $commands['invokable:test']);
273273
}
274274

275275
/**
@@ -2572,14 +2572,6 @@ public function isEnabled(): bool
25722572
}
25732573
}
25742574

2575-
#[AsCommand(name: 'invokable-extended')]
2576-
class InvokableExtendedTestCommand extends Command
2577-
{
2578-
public function __invoke(): int
2579-
{
2580-
}
2581-
}
2582-
25832575
#[AsCommand(name: 'signal')]
25842576
class BaseSignableCommand extends Command
25852577
{

0 commit comments

Comments
 (0)