From 0ad2abb77732df7449b3c4474c599121d7689441 Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Fri, 5 Apr 2024 08:48:51 -0700 Subject: [PATCH] Add -n to the global-options-only test, so that it does not hang if the alias is not found (Symfony will prompt for which command you might want to run instead in this instance). --- tests/AnnotatedCommandFactoryTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/AnnotatedCommandFactoryTest.php b/tests/AnnotatedCommandFactoryTest.php index c450fff..574a669 100644 --- a/tests/AnnotatedCommandFactoryTest.php +++ b/tests/AnnotatedCommandFactoryTest.php @@ -158,7 +158,7 @@ function testGlobalOptionsOnly() $command = $this->commandFactory->createCommand($commandInfo, $this->commandFileInstance); - $input = new StringInput('global-options-only test'); + $input = new StringInput('global-options-only -n test'); $this->assertRunCommandViaApplicationEquals($command, $input, "Arg is test, options[help] is false"); }