diff --git a/src/Symfony/Component/Console/Tests/ApplicationTest.php b/src/Symfony/Component/Console/Tests/ApplicationTest.php index 1a730a95b3aa1..e9b45c051dc0f 100644 --- a/src/Symfony/Component/Console/Tests/ApplicationTest.php +++ b/src/Symfony/Component/Console/Tests/ApplicationTest.php @@ -266,10 +266,10 @@ public function testAddCommandWithInvokableCommand() public function testAddCommandWithInvokableExtendedCommand() { $application = new Application(); - $application->addCommand($foo = new InvokableExtendedTestCommand()); + $application->addCommand($foo = new InvokableExtendingCommandTestCommand()); $commands = $application->all(); - $this->assertEquals($foo, $commands['invokable-extended']); + $this->assertEquals($foo, $commands['invokable:test']); } /** @@ -2572,14 +2572,6 @@ public function isEnabled(): bool } } -#[AsCommand(name: 'invokable-extended')] -class InvokableExtendedTestCommand extends Command -{ - public function __invoke(): int - { - } -} - #[AsCommand(name: 'signal')] class BaseSignableCommand extends Command { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy