Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed the color handling for early exceptions #513

Merged
merged 2 commits into from
Apr 26, 2014
Merged

Conversation

stof
Copy link
Member

@stof stof commented Apr 26, 2014

This fixes #509

The second commit adds some missing --no-colors in the testsuite in places asserting the output.

stof added 2 commits April 26, 2014 19:38
This ensures that the colors setting is taken into account even when an
exception occurs during the config parsing.
Fixes Behat#509
This allows these scenarios to pass on Windows where the autodetection in
child process will not always disable colors automatically, given the
environment variables are forwarded.
@@ -189,4 +195,15 @@ protected function getCommandName(InputInterface $input)

return $this->getName();
}

protected function configureIO(InputInterface $input, OutputInterface $output)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Application is final. There's no point in adding protected methods in :) Make it private?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is overwriting a method of the Symfony application to extend it (hence the call to the parent method)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah :)

everzet added a commit that referenced this pull request Apr 26, 2014
Fixed the color handling for early exceptions
@everzet everzet merged commit 930544a into Behat:3.0 Apr 26, 2014
@stof stof deleted the color_support branch April 26, 2014 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants