@@ -2319,7 +2319,7 @@ public function testSignalHandlersAreCleanedUpAfterCommandRuns()
23192319 $ application = new Application ();
23202320 $ application ->setAutoExit (false );
23212321 $ application ->setCatchExceptions (false );
2322- $ application ->add (new SignableCommand (false ));
2322+ $ application ->addCommand (new SignableCommand (false ));
23232323
23242324 $ signalRegistry = $ application ->getSignalRegistry ();
23252325 $ tester = new ApplicationTester ($ application );
@@ -2372,7 +2372,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
23722372 $ application = new Application ();
23732373 $ application ->setAutoExit (false );
23742374 $ application ->setCatchExceptions (true );
2375- $ application ->add ($ command );
2375+ $ application ->addCommand ($ command );
23762376
23772377 $ signalRegistry = $ application ->getSignalRegistry ();
23782378 $ tester = new ApplicationTester ($ application );
@@ -2554,8 +2554,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
25542554 $ outerCommand ->self = $ self ;
25552555 $ outerCommand ->signalRegistry = $ signalRegistry ;
25562556
2557- $ application ->add ($ innerCommand );
2558- $ application ->add ($ outerCommand );
2557+ $ application ->addCommand ($ innerCommand );
2558+ $ application ->addCommand ($ outerCommand );
25592559
25602560 $ tester = new ApplicationTester ($ application );
25612561
@@ -2591,7 +2591,7 @@ public function testOriginalHandlerRestoredAfterPop()
25912591 $ application = new Application ();
25922592 $ application ->setAutoExit (false );
25932593 $ application ->setCatchExceptions (false );
2594- $ application ->add (new SignableCommand (false ));
2594+ $ application ->addCommand (new SignableCommand (false ));
25952595
25962596 $ tester = new ApplicationTester ($ application );
25972597 $ tester ->run (['command ' => 'signal ' ]);
0 commit comments