Skip to content

Support for PHPUnit 6.0 #1838

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 5 commits into from
Mar 12, 2017
Merged

Support for PHPUnit 6.0 #1838

merged 5 commits into from
Mar 12, 2017

Conversation

micgro42
Copy link
Collaborator

this (mostly) fixes #1837

If the tests are actually run with PHPUnit 6.0, then the --globals-backup flag has to be used.

However those classes are already supported in PHP 5.7 so we can switch
to them without breaking backward-compatibility.
@mention-bot
Copy link

@micgro42, thanks for your PR! By analyzing the history of the files in this pull request, we identified @splitbrain, @Chris--S and @ptbrown to be potential reviewers.

We still need 5 to test on old php versions, but travis uses 6 for newer
PHP versions (and 5 may break on those).

Luckily both versions aren't that far apart, yet. This adds a thin
adapter class when running on 6.
actually we could right now. but I don't like to introduce that change in
a feature branch.
@splitbrain splitbrain merged commit e793a5e into master Mar 12, 2017
@splitbrain splitbrain deleted the PHPUnit60Support branch March 12, 2017 08:38
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.

Testing is broken on PHPUnit 6
3 participants