From df467e235131538f7b7d5f61a7c628a2617bd800 Mon Sep 17 00:00:00 2001 From: HypeMC Date: Tue, 24 Jun 2025 02:03:54 +0200 Subject: [PATCH] [Console] Cleanup test --- .../Component/Console/Tests/ApplicationTest.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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