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

[String] We cannot have a "provides" function in test cases #37770

Merged
merged 1 commit into from
Aug 8, 2020

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Aug 8, 2020

Q A
Branch? 5.1
Bug fix? yes
New feature? no
Deprecations? no
Tickets Part of #37564
License MIT
Doc PR N/A

Because of a change in PHPUnit 9.3 (see sebastianbergmann/phpunit#3936), we cannot have define a method named provides in test cases. And since php is case-insensitive regarding method calls, the method provideS used by the String component's FunctionTest will cause a fatal error. I have renamed it to work around that issue.

cc @fancyweb

@derrabus
Copy link
Member Author

derrabus commented Aug 8, 2020

Should I fix the fabbot error or is this a false positive?

@fabpot
Copy link
Member

fabpot commented Aug 8, 2020

Thank you @derrabus.

@fabpot fabpot merged commit a8ea11b into symfony:5.1 Aug 8, 2020
@derrabus derrabus deleted the bugfix/phpunit-provides branch August 8, 2020 14:30
@fabpot fabpot mentioned this pull request Aug 31, 2020
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