Skip to content

NativeFunctionInvocationFixer - BacktickToShellExecFixer - fix integration test #5096

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

Merged
merged 1 commit into from
Aug 8, 2020
Merged

NativeFunctionInvocationFixer - BacktickToShellExecFixer - fix integration test #5096

merged 1 commit into from
Aug 8, 2020

Conversation

SpacePossum
Copy link
Contributor

The default configuration for the NativeFunctionInvocationFixer was changed on 3.0 making this priority test fail on it.

@SpacePossum SpacePossum added this to the 3.0.0 milestone Aug 7, 2020
@SpacePossum
Copy link
Contributor Author

SpacePossum commented Aug 7, 2020

The last fail is because on 3.0 we set the error logging here;
https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/3.0/php-cs-fixer#L14
and no longer in the Application class.

Now the setting is not loaded by PHPUnit so it runs with other values than we expected the app with. We could make a bootstrap file for PHPUnit, but maybe there is a more easy/better way to set the error reporting level in PHPUnit config?

(@ see https://github.com/symfony/phpunit-bridge/blob/v5.1.3/Legacy/SymfonyTestsListenerTrait.php#L339 for why the error reporting settings causes the tests to fail)

Verified

This commit was signed with the committer’s verified signature. The key has expired.
julienfalque Julien Falque
…ation test
@julienfalque
Copy link
Member

Thank you @SpacePossum.

@julienfalque julienfalque merged commit a7f8a9f into PHP-CS-Fixer:3.0 Aug 8, 2020
@julienfalque julienfalque removed the RTM Ready To Merge label Aug 8, 2020
@SpacePossum SpacePossum deleted the 3_0_integration_test_fix branch August 16, 2020 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants