Skip to content

[Console] regression in 7.3.5 on interactivity? #62260

@pjordaan

Description

@pjordaan

Symfony version(s) affected

7.3.5

Description

I have a few console command tests. They work in symfony/console 7.3.4 fine, but when I upgrade to 7.3.5 $input->isInteractive() returns false, so the command can not be run in interactive mode (it has an input option --interactive). If I skip the interactivity check temporarily, running the tests seems to make it wait infinitely.
I also had a failing test where $tester->getDisplay() returned an empty string.

The changelog does not seem to help here, but did something change that could have effect on ApplicationTester and/or CommandTester?

The test does nothing out of the ordinary like this:

$tester = new ApplicationTester($application);
$tester->setInputs($inputs);
$exitCode = $tester->run([$command, '--interactive' => true], ['interactive' => true]);
$this->assertEquals(Command::SUCCESS, $exitCode, 'console command gave me ' . $tester->getDisplay());

How to reproduce

You could technically download the code, remove the "conflict" of symfony/console 7.3.5 and see for yourself, but the test that nothing out of the ordinary as it is a test like this one.

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions