Skip to content

Fix CI for newer PHP versions #6

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

jtojnar
Copy link

@jtojnar jtojnar commented Jan 11, 2021

No description provided.

Modern PHPUnit does not run suites without names.
@jtojnar jtojnar force-pushed the ci-fix branch 2 times, most recently from 15714a1 to 5c25715 Compare January 12, 2021 21:58
@jtojnar jtojnar changed the title Fix CI Fix CI for newer PHP versions Jan 12, 2021
PHPUnit 7 is not compatible with PHP 8 and PHPUnit 8 adds return annotations to setUp method,
requiring us to add those as well to pass return covariance checks.
We can bypass that by renaming the setUp methods and using @before annotations
but then there are other issues as well. For example, recent PHPUnit no longer supports
@expectexception annotations an other issues.

Let’s use Symfony’s PHPUnit bridge, which will allow us the widest range of supported PHP versions.

We will need to bump to PHP 5.6+ since that is what php-unit bridge requires
but PHP 5.4 is not even supported by Debian Jessie (oldoldstable).

We also need to set locale appropriately for the null passed to iconv to work,
since phpunit-bridge uses C locale (ASCII) for consistency.
These are relevant now.

Also had to explicitly set xdebug mode on versions using XDebug 3.
For easier running of scripts. Now we can just execute `composer test`.
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.

1 participant