Skip to content

Run tests on PHP 7.4 and simplify test matrix #439

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 4 commits into from
Jul 11, 2020
Merged

Conversation

clue
Copy link
Member

@clue clue commented Jul 10, 2020

Builds on top of reactphp/socket#208, reactphp/dns#156, reactphp/promise-timer#41 and others.
Supersedes / closes #436

@clue clue added this to the v1.1.0 milestone Jul 10, 2020
@clue clue changed the title Test against PHP 7.4 and simplify test matrix Run tests on PHP 7.4 and simplify test matrix Jul 10, 2020
@clue
Copy link
Member Author

clue commented Jul 10, 2020

The build error on PHP 7.4 will be addressed via reactphp/dns#164. Interestingly, it fails in the FunctionalResolverTest class and does not fail anymore by excluding some other test cases. It can only be reproduced by running:

$ vendor/bin/phpunit --coverage-text --exclude-group internet

It can not be reproduced when running on any other PHP version, when ext-xdebug is disabled, when coverage is not collected or when not excluding this group.

This means the test failure is bogus.

The build error on PHP 7.4 will be addressed via
reactphp/dns#164. Interestingly, it fails in the
`FunctionalResolverTest` class and does not fail anymore by excluding
some other test cases. It can only be reproduced by running:

```
$ vendor/bin/phpunit --coverage-text --exclude-group internet
```

It can not be reproduced when running on any other PHP version, when
`ext-xdebug` is disabled, when coverage is not collected or when not
excluding this group.

This means the test failure is bogus.

We work around this by temporarily skipping some test case for now.
@clue
Copy link
Member Author

clue commented Jul 10, 2020

This means the test failure is bogus.

I don' want to hold this PR back due to a bogus build error, so let's work around this by temporarily skipping some test cases for now. This is similar to the work around in #428 and can be reverted once reactphp/dns#164 is released in a future version.

PR is ready for review :shipit:

@clue clue requested review from jsor and WyriHaximus July 10, 2020 16:40
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.

3 participants