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

Feature Getopt refactoring each #2536

Merged
merged 4 commits into from Feb 25, 2017
Merged

Feature Getopt refactoring each #2536

merged 4 commits into from Feb 25, 2017

Conversation

eclipxe13
Copy link
Contributor

This solves PHPUnit\Util\Getopt uses deprecated each() function #2472.

It is a simple refactory to avoid using each() function based on current() and next().
It includes more tests to verify how Getopt::getopt works.

Thanks for your great work and reviewing this PR.

@sebastianbergmann sebastianbergmann self-assigned this Feb 25, 2017
@sebastianbergmann sebastianbergmann added the type/refactoring A refactoring that should be applied to make the code easier to understand and maintain label Feb 25, 2017
@sebastianbergmann sebastianbergmann added this to the PHPUnit 6.1 milestone Feb 25, 2017
@sebastianbergmann sebastianbergmann merged commit 2e4abfd into sebastianbergmann:master Feb 25, 2017
@sebastianbergmann
Copy link
Owner

Thank you!

@SpacePossum
Copy link
Contributor

thanks @eclipxe13 ! 👍 :)

@eclipxe13 eclipxe13 deleted the feature-getopt-refactoring-each branch March 17, 2017 17:52
@leofeyer
Copy link

leofeyer commented Dec 4, 2017

I think we should backport this to PHPUnit 5.7, because the symfony/phpunit-bridge will find the silenced function call (see e.g. https://travis-ci.org/contao/core-bundle/jobs/311481433). What do you think?

falkenhawk added a commit to zf1s/phpunit that referenced this pull request May 8, 2019
- refactored Getopt + tests
- each() is deprecated since php 7.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/refactoring A refactoring that should be applied to make the code easier to understand and maintain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants